summaryrefslogtreecommitdiffstats
path: root/block/partition-generic.c
diff options
context:
space:
mode:
authorRakesh Pandit <rakesh@tuxera.com>2017-04-20 21:23:56 +0300
committerJens Axboe <axboe@fb.com>2017-04-21 12:40:41 -0600
commit8d77bb8276062ff2d991bec71389520dd0156cc3 (patch)
treee2367341fba648d341aa0d11ca1408b944189836 /block/partition-generic.c
parentabc25a693091e61537e40dfe24e8ee5deaf08208 (diff)
downloadlinux-0-day-8d77bb8276062ff2d991bec71389520dd0156cc3.tar.gz
lightnvm: propagate pblk_init return to userspace
From userspace calling ioctl(NVM_DEV_CREATE) was returning ENOMEM for invalid arguments even though pblk (pblk_init) was returning correctly -EINVAL to nvm_create_tgt inside core. This patch propagates the correct return value to userspace. Because pblk was introduced recently this only needs to go in 4.12. Fixes: a4bd217b4326 ("lightnvm: physical block device (pblk) target") Signed-off-by: Rakesh Pandit <rakesh@tuxera.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/partition-generic.c')
0 files changed, 0 insertions, 0 deletions