Re: [PATCH] USB: EHCI: fix dereference of ERR_PTR

2015-09-20 Thread Sudip Mukherjee
On Mon, Sep 21, 2015 at 10:48:52AM +0800, Lu, Baolu wrote: > > > On 09/16/2015 10:08 PM, Sudip Mukherjee wrote: > >On error find_tt() returns either a NULL pointer or the error value in > >ERR_PTR. But we were dereferencing it directly without even checking if > >find_tt() returned a valid pointe

Re: [PATCH] USB: EHCI: fix dereference of ERR_PTR

2015-09-20 Thread Lu, Baolu
On 09/16/2015 10:08 PM, Sudip Mukherjee wrote: On error find_tt() returns either a NULL pointer or the error value in ERR_PTR. But we were dereferencing it directly without even checking if find_tt() returned a valid pointer or not. Signed-off-by: Sudip Mukherjee --- drivers/usb/host/ehci-s

Re: [PATCH] USB: EHCI: fix dereference of ERR_PTR

2015-09-16 Thread Sergei Shtylyov
Hello. On 9/16/2015 5:08 PM, Sudip Mukherjee wrote: On error find_tt() returns either a NULL pointer or the error value in ERR_PTR. But we were dereferencing it directly without even checking if find_tt() returned a valid pointer or not. Signed-off-by: Sudip Mukherjee --- drivers/usb/host/e

Re: [PATCH] USB: EHCI: fix dereference of ERR_PTR

2015-09-16 Thread Fabio Estevam
On Wed, Sep 16, 2015 at 11:08 AM, Sudip Mukherjee wrote: > On error find_tt() returns either a NULL pointer or the error value in > ERR_PTR. But we were dereferencing it directly without even checking if > find_tt() returned a valid pointer or not. > > Signed-off-by: Sudip Mukherjee > --- > driv