]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2iscsi: fix dma free size mismatch regression
authorJohn Soni Jose <sony.john-n@emulex.com>
Thu, 23 Aug 2012 07:52:35 +0000 (13:22 +0530)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Thu, 30 Aug 2012 22:34:20 +0000 (15:34 -0700)
commit32767d4f30022f806d20123e99135adf2107e76b
tree19eb7cce2bf5ee12f4dc79ee687cf15b3109ff57
parent06833c277e62a9f04bc20a38ad8d2161aa94e15c
be2iscsi: fix dma free size mismatch regression

 Upstream kernel commit details are below.

 commit b83d543fd934d565fb243ef348b06a61d794b31d
 Author: Mike Christie <michaelc@cs.wisc.edu>
 Date:   Wed May 23 20:40:54 2012 -0500

 [SCSI] be2iscsi: fix dma free size mismatch regression

 This patch should go into 3.5 fixes. The bug was added in the
 patches for the 3.5 feature window.

 As you can see from the patch I made a mistake. During
 development I switched from passing a struct to the size of
 the struct, but left the sizeof. This results in us allocating
 4 bytes (sizeof(int)) but then calling pci_free_consistent
 with the size of the struct.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
drivers/scsi/be2iscsi/be_mgmt.c