summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-gadget.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-06-19 08:05:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-17 15:15:42 +0200
commitebe02fcbbe23ee78e4da480b6f924ae7beb98488 (patch)
tree642d171589a59d02e30253af4a92d74b888282a3 /drivers/usb/cdns3/cdns3-gadget.c
parent9502680c58d3587cf8c4ea9b95d1fdf95c6e6452 (diff)
mtip32xx: fix device removal
[ Upstream commit e8b58ef09e84c15cf782b01cfc73cc5b1180d519 ] Use the proper helper to mark a surpise removal, remove the gendisk as soon as possible when removing the device and implement the ->free_disk callback to ensure the private data is alive as long as the gendisk has references. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20220619060552.1850436-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
0 files changed, 0 insertions, 0 deletions