Staging: unisys: uislib: Fix locking in info_proc_read_helper()
authorKen Cox <jkc@redhat.com>
Fri, 7 Mar 2014 18:22:22 +0000 (12:22 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 06:42:14 +0000 (22:42 -0800)
commit27dd5548396e69c4b735739b8d7824ca2a3f39d5
tree134ceba1da485ba9d265b243cf082ab67574fc4f
parentbed3b10d20e34683ddc596f7858fef076d148390
Staging: unisys: uislib: Fix locking in info_proc_read_helper()

Make sure BusListLock is unlocked before returning.  If an error is encountered
early on in info_proc_read_helper() the function can return without unlocking.

Also changed the PROCLINE macro so that it doesn't include a goto statement.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/uislib/uislib.c