diff options
author | Christoph Hellwig <[email protected]> | 2023-06-21 14:49:14 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-06-21 07:37:52 -0600 |
commit | 56e71bdf324d6ab263eba1fc3fa1f3fd8bb5678e (patch) | |
tree | 248f2edc51ee7f3672689e59c54f73a46339672b /lib/test_fortify/write_overflow-memcpy.c | |
parent | b6f3f28f604ba3de4724ad82bea6adb1300c0b5f (diff) |
block: fix the exclusive open mask in disk_scan_partitions
FMODE_EXEC has nothing to do with exclusive opens, and even is of
the wrong type. We need to check for BLK_OPEN_EXCL here.
Fixes: 985958b8584c ("block: fix wrong mode for blkdev_get_by_dev() from disk_scan_partitions()")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions