staging: sm750fb: fixing function return with lock held
authorPrasant Jalan <prasant.jalan@gmail.com>
Fri, 31 Mar 2017 19:10:01 +0000 (00:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:00:51 +0000 (17:00 +0200)
commit4895398d0375d57fc098c2816eb0a7dadc1c1ce6
tree3753947e44c02e6dfae59adfc5cc9b55aab3305f
parentd6171ba8584e01181f275f06288134c94e374b5f
staging: sm750fb: fixing function return with lock held

lynxfb_suspend() & lynxfb_resume() return on errors while holding
console_lock.

Adding 'goto' such that proper cleanups can be done before returning
from function and therefore console_lock can be released before
returning.

Signed-off-by: Prasant Jalan <prasant.jalan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c