]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/scsi_lib.c
Merge with ../linux-2.6-smp
[linux-2.6-omap-h63xx.git] / drivers / scsi / scsi_lib.c
index 621dee8b8cb29f40a2e8a53c9e608b4fbe09bea5..10506f9cd0c929da622b667c22fcee071c522bd2 100644 (file)
@@ -632,7 +632,7 @@ static void scsi_free_sgtable(struct scatterlist *sgl, int index)
 {
        struct scsi_host_sg_pool *sgp;
 
-       BUG_ON(index > SG_MEMPOOL_NR);
+       BUG_ON(index >= SG_MEMPOOL_NR);
 
        sgp = scsi_sg_pools + index;
        mempool_free(sgl, sgp->pool);