[PATCH 3.12 073/170] usb: gadget: f_fs: fix NULL pointer dereference when there are no strings

2014-07-18 Thread Jiri Slaby
From: Michal Nazarewicz 3.12-stable review patch. If anyone has any objections, please let me know. === commit f0688c8b81d2ea239c3fb0b848f623b579238d99 upstream. If the descriptors do not need any strings and user space sends empty set of strings, the ffs->stringtabs field

[PATCH 3.12 073/170] usb: gadget: f_fs: fix NULL pointer dereference when there are no strings

2014-07-18 Thread Jiri Slaby
From: Michal Nazarewicz min...@mina86.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit f0688c8b81d2ea239c3fb0b848f623b579238d99 upstream. If the descriptors do not need any strings and user space sends empty set of strings, the