esas2r: fir error handling in do_fm_api
authorTomas Henzl <thenzl@redhat.com>
Sun, 16 Nov 2014 13:35:32 +0000 (14:35 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 25 Nov 2014 14:42:51 +0000 (15:42 +0100)
commitddcae01746b2eefadc78257ca57e327bc9fba791
tree3dceb5a0e3ef14e62ce22a8b1a2b329a90dd4d27
parent71bd849dbac99b587cb8a2d34061ecb6abe77c84
esas2r: fir error handling in do_fm_api

This patch fixes an error path and rearranges error handling.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Bradley Grove <bgrove@attotech.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/esas2r/esas2r_ioctl.c