usg: gadget: Move validation out of lock in webusb_bcdVersion_store()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 27 Jan 2023 11:26:38 +0000 (13:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 09:37:51 +0000 (10:37 +0100)
commit582cef438551ca6373f8c3901a15947b2c9643b9
tree252ea3bf49a737bfc9ce26a94b14d0e9243ad5ca
parent2bf40502badf9bc15a487244dd23ce0b08c306c0
usg: gadget: Move validation out of lock in webusb_bcdVersion_store()

Validation has nothing to do with any protected data,
move it out of the lock and make code neater.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230127112638.84806-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/configfs.c