summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2012-11-21 09:54:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-28 16:30:12 -0700
commit4ac697c53bf856ef1c8d32f8fd903987e0494311 (patch)
tree76a1741dd2f47d12e87cef897ad080bdd1aca78c /lib
parente90c1dc2c6298f7d369804aa7873d1c4c434f9d3 (diff)
downloadlinux-3.10-4ac697c53bf856ef1c8d32f8fd903987e0494311.tar.gz
linux-3.10-4ac697c53bf856ef1c8d32f8fd903987e0494311.tar.bz2
linux-3.10-4ac697c53bf856ef1c8d32f8fd903987e0494311.zip
SCSI: megaraid_sas: fix memory leak if SGL has zero length entries
commit 7a6a731bd00ca90d0e250867c3b9c05b5ff0fa49 upstream. commit 98cb7e44 ([SCSI] megaraid_sas: Sanity check user supplied length before passing it to dma_alloc_coherent()) introduced a memory leak. Memory allocated for entries following zero length SGL entries will not be freed. Reference: http://bugs.debian.org/688198 Signed-off-by: Bjørn Mork <bjorn@mork.no> Acked-by: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions