mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 20:21:30 +00:00
scst_lib: Use bdev_fput() to release bdev files
See also upstream commit 22650a99821d ("fs,block: yield devices
early") # v6.9.
This commit is contained in:
@@ -6135,7 +6135,7 @@ void scst_release_bdev(struct scst_bdev_descriptor *bdev_desc)
|
||||
struct file *bdev_file = bdev_desc->priv;
|
||||
|
||||
if (bdev_file)
|
||||
fput(bdev_file);
|
||||
bdev_fput(bdev_file);
|
||||
#endif
|
||||
|
||||
bdev_desc->bdev = NULL;
|
||||
|
||||
Reference in New Issue
Block a user