Re: [PATCH v2] i2c: busses/i2c-pxa.c: fix potential null pointer dereference error

2013-02-05 Thread Haojian Zhuang
On Tue, Feb 5, 2013 at 6:25 PM, Cong Ding wrote: > On Tue, Feb 05, 2013 at 09:14:08AM +0800, Haojian Zhuang wrote: >> On Tue, Feb 5, 2013 at 8:05 AM, Cong Ding wrote: >> > If it goes to eclk through line 1107, the variable res would be NULL. It >> > will >> > cause a null pointer dereference err

Re: [PATCH v2] i2c: busses/i2c-pxa.c: fix potential null pointer dereference error

2013-02-05 Thread Cong Ding
On Tue, Feb 05, 2013 at 09:14:08AM +0800, Haojian Zhuang wrote: > On Tue, Feb 5, 2013 at 8:05 AM, Cong Ding wrote: > > If it goes to eclk through line 1107, the variable res would be NULL. It > > will > > cause a null pointer dereference error if we call release_mem_region. > > > > Signed-off-by:

Re: [PATCH v2] i2c: busses/i2c-pxa.c: fix potential null pointer dereference error

2013-02-04 Thread Haojian Zhuang
On Tue, Feb 5, 2013 at 8:05 AM, Cong Ding wrote: > If it goes to eclk through line 1107, the variable res would be NULL. It will > cause a null pointer dereference error if we call release_mem_region. > > Signed-off-by: Cong Ding > --- > drivers/i2c/busses/i2c-pxa.c |3 ++- > 1 file changed,