Re: [PATCH] ipw2200: Missing kmalloc check

2005-09-05 Thread Takis
On 9/5/05, Jiri Slaby <[EMAIL PROTECTED]> wrote: > > rxq = (struct ipw_rx_queue *)kmalloc(sizeof(*rxq), GFP_KERNEL); > >+ if (unlikely(!rxq)) { > >+ IPW_ERROR("memory allocation failed\n"); > >+ return NULL; > >+ } > > memset(rxq, 0, sizeof(*rxq)); >

Re: [PATCH] ipw2200: Missing kmalloc check

2005-09-05 Thread Jiri Slaby
Panagiotis Issaris napsal(a): The ipw2200 driver code in current GIT contains a kmalloc() followed by a memset() without handling a possible memory allocation failure. Signed-off-by: Panagiotis Issaris <[EMAIL PROTECTED]> --- drivers/net/wireless/ipw2200.c |4 1 files changed, 4 insert

[PATCH] ipw2200: Missing kmalloc check

2005-09-04 Thread Panagiotis Issaris
The ipw2200 driver code in current GIT contains a kmalloc() followed by a memset() without handling a possible memory allocation failure. Signed-off-by: Panagiotis Issaris <[EMAIL PROTECTED]> --- drivers/net/wireless/ipw2200.c |4 1 files changed, 4 insertions(+), 0 deletions(-) 8e288