From: Ignacy Gawedzki Date: Thu, 14 Jul 2011 13:03:11 +0000 (+0200) Subject: carl9170 firmware: correct use of memset X-Git-Tag: 1.9.5~46 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=5a79392acf19327b34c5c9ff70208a58c07508c1;p=carl9170fw.git carl9170 firmware: correct use of memset I noticed something that may be a bug in wlan.c, in wlan_wol_connection_monitor(): memset(nullf, 0, sizeof(nullf)); Should be: memset(nullf, 0, sizeof(*nullf)); Signed-off-by: Christian Lamparter --- diff --git a/carlfw/src/wlan.c b/carlfw/src/wlan.c index 7567312..59e9141 100644 --- a/carlfw/src/wlan.c +++ b/carlfw/src/wlan.c @@ -756,7 +756,7 @@ static void wlan_wol_connection_monitor(void) if (!fw.wlan.fw_desc_available) return; - memset(nullf, 0, sizeof(nullf)); + memset(nullf, 0, sizeof(*nullf)); nullf->s.len = sizeof(struct carl9170_tx_superdesc) + sizeof(struct ar9170_tx_hwdesc) +