]> git.baikalelectronics.ru Git - kernel.git/commit
block/sed-opal: Propagate original error message to userland.
authorScott Bauer <scott.bauer@intel.com>
Wed, 22 Feb 2017 17:15:08 +0000 (10:15 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 23 Feb 2017 18:55:44 +0000 (11:55 -0700)
commitebdcc991210b0caba08e19f62607590a74d98af1
tree6423a5ec0b75faf1975bfbe13147c4f0defdacb8
parentace2419b9c070d71157340c79253fbcc2acccefe
block/sed-opal: Propagate original error message to userland.

During an error on a comannd, ex: user provides wrong pw to unlock
range, we will gracefully terminate the opal session. We want to
propagate the original error to userland instead of the result of
the session termination, which is almost always a success.

Signed-off-by: Scott Bauer <scott.bauer@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/sed-opal.c