From: Raghava Aditya Renukunta Date: Thu, 16 Feb 2017 20:51:14 +0000 (-0800) Subject: scsi: aacraid: Fix memory leak in fib init path X-Git-Tag: v3.2.89~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd0ac65ac10e5bbbc127f3f6856c0ddef4aa3b0b;p=pandora-kernel.git scsi: aacraid: Fix memory leak in fib init path commit 1bff5abca65d4b9761fcc992ab6288243220003d upstream. aac_fib_map_free frees misaligned fib dma memory, additionally it does not free up the whole memory. Fixed by changing the code to free up the correct and full memory allocation. Fixes: e8b12f0fb835223 ([SCSI] aacraid: Add new code for PMC-Sierra's SRC based controller family) Signed-off-by: Raghava Aditya Renukunta Reviewed-by: David Carroll Reviewed-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen [bwh: Backported to 3.2: s/max_cmd_size/max_fib_size/] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed