]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging/lustre/vvp: release mmap_sem in error case
authorPatrick Farrell <paf@cray.com>
Mon, 23 Jun 2014 01:32:20 +0000 (21:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:45:06 +0000 (20:45 -0400)
commit09516500cb7555e83aceb9316ce69b0baf6ad1eb
treeffde1cfac436fc29a2af1ce127083ef7ba40b0af
parentad33b38b5213f4adad5a7a0b054d6000e24400b7
staging/lustre/vvp: release mmap_sem in error case

The mmap_sem is downed in vvp_mmap_locks, but in case of
error from cl_io_lock_alloc_add, it is not upped.

Credit to Paul Casella at Cray for finding this.

Signed-off-by: Patrick Farrell <paf@cray.com>
Reviewed-on: http://review.whamcloud.com/10741
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5221
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/vvp_io.c