diff options
author | Ming Lei <ming.lei@redhat.com> | 2021-09-06 17:01:12 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-09 13:24:30 +0200 |
commit | d56459d361a9a99bead8b594635353053271356c (patch) | |
tree | 94f92ab5efb50b937a1beadbb861696020f06de2 /net/lapb/lapb_subr.c | |
parent | f117a356fb0a11d8d2230305de3958216ca84770 (diff) |
scsi: sd: Free scsi_disk device via put_device()
[ Upstream commit 265dfe8ebbabae7959060bd1c3f75c2473b697ed ]
After a device is initialized via device_initialize() it should be freed
via put_device(). sd_probe() currently gets this wrong, fix it up.
Link: https://lore.kernel.org/r/20210906090112.531442-1-ming.lei@redhat.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions