Re: [v1] usb:gadget:legacy:nokia :- Check for NULL in nokia_bind_config

2016-12-09 Thread Michal Nazarewicz
On Thu, Dec 08 2016, Arvind Yadav wrote: > Here, f_acm,f_ecm and f_msg needs to be checked for being NULL > in nokia_bind_config() before calling usb_add_function(), > otherwise kernel can run into a NULL-pointer dereference. > > f_phonet, f_obex1 and f_obex2 need to be checked for NULL > in nokia_

[v1] usb:gadget:legacy:nokia :- Check for NULL in nokia_bind_config

2016-12-08 Thread Arvind Yadav
Here, f_acm,f_ecm and f_msg needs to be checked for being NULL in nokia_bind_config() before calling usb_add_function(), otherwise kernel can run into a NULL-pointer dereference. f_phonet, f_obex1 and f_obex2 need to be checked for NULL in nokia_bind_config() to print proper debug information. Si