diff options
author | Christoph Hellwig <hch@lst.de> | 2019-05-17 02:47:33 -0700 |
---|---|---|
committer | Keith Busch <keith.busch@intel.com> | 2019-05-17 11:06:59 -0600 |
commit | 100c815cbd56480b3e31518475b04719c363614a (patch) | |
tree | a88268d32b052af56875655effd26ee1b34ba41b /drivers/pinctrl/pinctrl-at91.h | |
parent | 6fa0321a96043b5a983bbefa785859d664645840 (diff) | |
download | linux-stable-100c815cbd56480b3e31518475b04719c363614a.tar.gz linux-stable-100c815cbd56480b3e31518475b04719c363614a.tar.bz2 linux-stable-100c815cbd56480b3e31518475b04719c363614a.zip |
nvme: fix srcu locking on error return in nvme_get_ns_from_disk
If we can't get a namespace don't leak the SRCU lock. nvme_ioctl was
working around this, but nvme_pr_command wasn't handling this properly.
Just do what callers would usually expect.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Diffstat (limited to 'drivers/pinctrl/pinctrl-at91.h')
0 files changed, 0 insertions, 0 deletions