aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorAnand Jain <[email protected]>2024-03-19 02:58:18 +0000
committerDavid Sterba <[email protected]>2024-03-26 15:42:39 +0000
commit2f1aeab9fca1a5f583be1add175d1ee95c213cfa (patch)
tree9abe83ceb53d5311fb9b866c24128225b5cdba20 /drivers/net/ethernet/intel/igc/igc_main.c
parentbtrfs: zoned: don't skip block groups with 100% zone unusable (diff)
downloadkernel-2f1aeab9fca1a5f583be1add175d1ee95c213cfa.tar.gz
kernel-2f1aeab9fca1a5f583be1add175d1ee95c213cfa.zip
btrfs: return accurate error code on open failure in open_fs_devices()
When attempting to exclusive open a device which has no exclusive open permission, such as a physical device associated with the flakey dm device, the open operation will fail, resulting in a mount failure. In this particular scenario, we erroneously return -EINVAL instead of the correct error code provided by the bdev_open_by_path() function, which is -EBUSY. Fix this, by returning error code from the bdev_open_by_path() function. With this correction, the mount error message will align with that of ext4 and xfs. Reviewed-by: Boris Burkov <[email protected]> Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions