Re: f_hid.c conversion to the new function interface and crash due to race

2017-08-10 Thread Felipe Balbi
Hi, (please break your lines at 80 columns) Variksla writes: >> On Aug 9, 2017, at 2:56 AM, Felipe Balbi >> wrote: > > Thanks for replying. >> >> >> Hi, >> >> noman pouigt writes: >>> Hello, >>> >>> I am currently

Re: f_hid.c conversion to the new function interface and crash due to race

2017-08-09 Thread Variksla
> On Aug 9, 2017, at 2:56 AM, Felipe Balbi wrote: Thanks for replying. > > > Hi, > > noman pouigt writes: >> Hello, >> >> I am currently using 3.18 linux kernel and getting below > > return -EKERNELTOOOLD; > > Sorry, you're on your own.

Re: f_hid.c conversion to the new function interface and crash due to race

2017-08-09 Thread Felipe Balbi
Hi, noman pouigt writes: > Hello, > > I am currently using 3.18 linux kernel and getting below return -EKERNELTOOOLD; Sorry, you're on your own. You should ask for support from whoever forces you to use 3.18 kernel. -- balbi signature.asc Description: PGP signature

f_hid.c conversion to the new function interface and crash due to race

2017-08-09 Thread noman pouigt
Hello, I am currently using 3.18 linux kernel and getting below spinlock crashe in f_hid.c driver (https://goo.gl/3mdAr1). Crash is happening due to race condition between hidg_unbind and f_hidg_poll function. This is still a problem with latest kernel though as cdev_del(>cdev) is racing with