aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorChaitanya Kulkarni <[email protected]>2022-02-15 03:59:51 -0800
committerJens Axboe <[email protected]>2022-02-27 14:49:49 -0700
commita75110c3b36959d04d3a586ba43510ddf9b410b5 (patch)
tree711da4adbf8f8cc633c159d00b6482611741fd5e /net/lapb/lapb_in.c
parentd9a74051a73c4fbd065ae806b8da151cbded84f1 (diff)
null_blk: fix return value from null_add_dev()
The function nullb_device_power_store() returns -ENOMEM when null_add_dev() fails. null_add_dev() can fail with return value other than -ENOMEM such as -EINVAL when Zoned Block Device option is used, see : nullb_device_power_store() null_add_dev() null_init_zoned_dev() return -EINVAL; When trying to load the module having -ENOMEM value returned on the command line creates confusion when pleanty of memory is free on the machine. Instead of hardcoding -ENOMEM return the value of null_add_dev() function. Signed-off-by: Chaitanya Kulkarni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions