gpu: vga_switcheroo, fix lock imbalance
authorJiri Slaby <jslaby@suse.cz>
Tue, 27 Apr 2010 21:11:03 +0000 (14:11 -0700)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Apr 2010 08:41:52 +0000 (18:41 +1000)
commit8c88e50bcf7f9f7e1b4987aaac3dfacc3ac6bd24
treec10e68f52a3fc35bf46ba24bf433d244934bbf5e
parent404b017d00a9f472bdf725a06892d42f1cba5ed8
gpu: vga_switcheroo, fix lock imbalance

Stanse found that one error path in vga_switcheroo_debugfs_write omits to
unlock vgasr_mutex.  Fix that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/vga/vga_switcheroo.c