Noticed by Coverity checker. Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]> ---
drivers/usb/net/zd1201.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) --- linux-vanilla/drivers/usb/net/zd1201.c +++ linux-coverity-1731/drivers/usb/net/zd1201.c @@ -343,13 +343,13 @@ static void zd1201_usbrx(struct urb *urb struct zd1201_frag *frag = NULL; char *ptr; if (datalen<14) goto resubmit; if ((seq & IEEE802_11_SCTL_FRAG) == 0) { - frag = kmalloc(sizeof(struct zd1201_frag*), + frag = kmalloc(sizeof(struct zd1201_frag), GFP_ATOMIC); if (!frag) goto resubmit; skb = dev_alloc_skb(IEEE802_11_DATA_LEN +14+2); if (!skb) { kfree(frag); ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel