From: Julia Lawall Date: Sun, 13 Dec 2009 05:47:04 +0000 (+0000) Subject: drivers/net/usb: Correct code taking the size of a pointer X-Git-Tag: v2.6.33-rc1~59^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6057912d7baad31be9819518674ffad349a065b1;p=pandora-kernel.git drivers/net/usb: Correct code taking the size of a pointer sizeof(dev->dev_addr) is the size of a pointer. A few lines above, the size of this field is obtained using netdev->addr_len for a call to memcpy, so do the same here. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression *x; expression f; type T; @@ *f(...,(T)x,...) // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed