]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] be2iscsi: fix dma free size mismatch regression
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 24 May 2012 01:40:54 +0000 (20:40 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 30 May 2012 09:34:22 +0000 (13:34 +0400)
commit16fd2936e3da576fe7121245f0eb22d22a2fea66
tree58d4b585bb6b8e201b3f71c578bfbb180daca37f
parent91323c81515c4bb06d877d93bdcba3e6f3829043
[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>
drivers/scsi/be2iscsi/be_mgmt.c