Re: [PATCH] request_firmware_examples

From: Alan Cox
Date: Sat Sep 09 2006 - 10:53:25 EST


Ar Iau, 2006-09-07 am 16:25 -0700, ysgrifennodd Victor Hugo:
> + u8 *buf = kmalloc(size + 1, GFP_KERNEL);
> + memcpy(buf, firmware, size);

NAK. Out of memory check please.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/