On 13 Mar 2018, at 18:40, Jakob Unterwurzacher <jakob.unterwurzacher@xxxxxxxxxxxxxxxxxxxxx> wrote:
+ /* get the urb context */
+ if (WARN_ON(!context))
+ return;
Can this happen?
Not unless there is a bug in the code. But we want to get a message
before dereferencing a pointer.
Why not use BUG_ON(!context)?