Re: [PATCH] regmap: irq: Fix possible ZERO_SIZE_PTR pointer dereferencing error.

2014-05-26 Thread Mark Brown
On Mon, May 19, 2014 at 03:13:45PM +0800, Xiubo Li wrote: > Since we cannot make sure the 'chip->num_regs' will always be none zero > from the users, and then if 'chip->num_regs' equals to zero by mistake > or other reasons, the kzalloc() will return ZERO_SIZE_PTR, which equals > to ((void *)16).

RE: [PATCH] regmap: irq: Fix possible ZERO_SIZE_PTR pointer dereferencing error.

2014-05-19 Thread li.xi...@freescale.com
> Subject: Re: [PATCH] regmap: irq: Fix possible ZERO_SIZE_PTR pointer > dereferencing error. > > On Mon, May 19, 2014 at 03:13:45PM +0800, Xiubo Li wrote: > > Since we cannot make sure the 'chip->num_regs' will always be none zero > > from the users, and th

Re: [PATCH] regmap: irq: Fix possible ZERO_SIZE_PTR pointer dereferencing error.

2014-05-19 Thread Mark Brown
On Mon, May 19, 2014 at 03:13:45PM +0800, Xiubo Li wrote: > Since we cannot make sure the 'chip->num_regs' will always be none zero > from the users, and then if 'chip->num_regs' equals to zero by mistake > or other reasons, the kzalloc() will return ZERO_SIZE_PTR, which equals > to ((void *)16). >