Re: [PATCH 1/5] drivers/staging/rtl8712/rtl871x_mlme.c: eliminate anull pointer dereference

From: Dan Carpenter
Date: Sat Oct 29 2011 - 02:24:17 EST


On Fri, Oct 28, 2011 at 08:05:52PM -0500, Larry Finger wrote:
> I believe it is. It probably does not matter as I have never hit an
> oops at this location.
>

You would only hit an Oops if you used a zero mac address for
pnetwork->MacAddress.

Julia's patch is turning on some code that was never tested to make
it the common case. So it will be easy to see if it works or not
when it gets merged. ;P To me it could go either way, (the test is
reversed or the memcpy() could be removed).

regards,
dan carpenter

--
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/