Please sign in to comment.
scsi: libsas: fix memory leak in sas_smp_get_phy_events()
We've got a memory leak with the following producer: while true; do cat /sys/class/sas_phy/phy-1:0:12/invalid_dword_count >/dev/null; done The buffer req is allocated and not freed after we return. Fix it. Fixes: 2908d77 ("[SCSI] aic94xx: new driver") Signed-off-by: Jason Yan <firstname.lastname@example.org> CC: John Garry <email@example.com> CC: chenqilin <firstname.lastname@example.org> CC: chenxiang <email@example.com> Reviewed-by: Christoph Hellwig <firstname.lastname@example.org> Reviewed-by: Hannes Reinecke <email@example.com> Signed-off-by: Martin K. Petersen <firstname.lastname@example.org>
- Loading branch information...