]> git.karo-electronics.de Git - linux-beck.git/commit
usbip: simplify lock handling in valid_request()
authorMárton Németh <nm127@freemail.hu>
Tue, 24 May 2011 21:19:18 +0000 (23:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:53:24 +0000 (13:53 -0700)
commit9ba422b346c9654ec78ee0a5b7c5db6e5d4c48dd
treee0024ea28aa91174eac39fe1e0334affbb01396c
parent0392bbb6f6af31888570a24641158d9b51b07eb6
usbip: simplify lock handling in valid_request()

The function calls spin_lock() and spin_unlock() should be in pair. This patch makes
this pairing more clear for the reader of the code.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/stub_rx.c