diff options
author | 2016-11-30 22:36:48 +0300 | |
---|---|---|
committer | 2016-11-30 19:53:58 -0500 | |
commit | af25756de972d0f05246f9e6869f395ee0302c02 (patch) | |
tree | 54936fcb42ec305dfeca62e25571b3217a1fa137 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | scsi: cxlflash: Migrate scsi command pointer to AFU command (diff) | |
download | wireguard-linux-af25756de972d0f05246f9e6869f395ee0302c02.tar.xz wireguard-linux-af25756de972d0f05246f9e6869f395ee0302c02.zip |
scsi: dpt_i2o: double free on error path
We recently introduced a kfree() in the caller for this function.
That's where, logically, you would think the kfree() should be.
Unfortunately the code was just ugly and not buggy so the static checker
warning was a false postive and introduced a double free.
I've removed the old kfree() and left the new one.
Fixes: 021e2927586d ("scsi: dpt_i2o: Add a missing call to kfree")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions