diff options
author | Sreekanth Reddy <sreekanth.reddy@broadcom.com> | 2017-10-10 18:41:15 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-11 14:08:07 -0400 |
commit | bbe3def3a11dc1040d45469f5dd26032e9fd8c79 (patch) | |
tree | 5756ec9dfa3aa282dda4dffdcd9386bea519ddd1 /arch/tile/kernel/vdso/vgettimeofday.c | |
parent | b99b199378afac7675876adc170d82d7a4442330 (diff) | |
download | op-kernel-dev-bbe3def3a11dc1040d45469f5dd26032e9fd8c79.zip op-kernel-dev-bbe3def3a11dc1040d45469f5dd26032e9fd8c79.tar.gz |
scsi: mpt3sas: Fixed memory leaks in driver
While removing Expander devices, we are removing expander device entry
from the list before freeing its child devices. While freeing child
device we are finding its parent device node as NULL and therefore we
are not freeing the child device's allocated data structures. Updated
the driver to remove the expander device from the list only after
freeing all its child devices.
[mkp: clarified commit message]
Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@broadcom.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'arch/tile/kernel/vdso/vgettimeofday.c')
0 files changed, 0 insertions, 0 deletions