diff options
author | Qinglang Miao <[email protected]> | 2020-11-20 15:48:52 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-12-07 17:45:19 -0500 |
commit | 6dc1c7ab6f047f45b62986ffebc5324e86ed5f5a (patch) | |
tree | 8059fec400d26b3a3eb8b7c0209705922fc92d2b /scripts/gdb/linux/config.py | |
parent | 97031ccffa4f62728602bfea8439dd045cd3aeb2 (diff) |
scsi: iscsi: Fix inappropriate use of put_device()
kfree(conn) is called inside put_device(&conn->dev) which could lead to
use-after-free. In addition, device_unregister() should be used here rather
than put_deviceO().
Link: https://lore.kernel.org/r/[email protected]
Fixes: f3c893e3dbb5 ("scsi: iscsi: Fail session and connection on transport registration failure")
Reported-by: Hulk Robot <[email protected]>
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: Qinglang Miao <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions