From patchwork Wed Dec 9 19:25:59 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 66063 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB9JRJII022385 for ; Wed, 9 Dec 2009 19:27:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757391AbZLITZ7 (ORCPT ); Wed, 9 Dec 2009 14:25:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757553AbZLITZ5 (ORCPT ); Wed, 9 Dec 2009 14:25:57 -0500 Received: from mgw2.diku.dk ([130.225.96.92]:54119 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757371AbZLITZz (ORCPT ); Wed, 9 Dec 2009 14:25:55 -0500 Received: from localhost (localhost [127.0.0.1]) by mgw2.diku.dk (Postfix) with ESMTP id 5E39819BB5A; Wed, 9 Dec 2009 20:26:01 +0100 (CET) Received: from mgw2.diku.dk ([127.0.0.1]) by localhost (mgw2.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25414-20; Wed, 9 Dec 2009 20:26:00 +0100 (CET) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw2.diku.dk (Postfix) with ESMTP id 23A7C19BB56; Wed, 9 Dec 2009 20:26:00 +0100 (CET) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id 9AFD86DF893; Wed, 9 Dec 2009 20:22:13 +0100 (CET) Received: by ask.diku.dk (Postfix, from userid 3767) id 089F8475B; Wed, 9 Dec 2009 20:26:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 010F04632; Wed, 9 Dec 2009 20:25:59 +0100 (CET) Date: Wed, 9 Dec 2009 20:25:59 +0100 (CET) From: Julia Lawall To: "John W. Linville" , Johannes Berg , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 11/12] net/mac80211: Correct size given to memset Message-ID: MIME-Version: 1.0 X-Virus-Scanned: amavisd-new at diku.dk Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff -u -p a/net/mac80211/mesh.c b/Net/mac80211/mesh.c --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -427,7 +427,7 @@ int ieee80211_new_mesh_header(struct iee char *addr5, char *addr6) { int aelen = 0; - memset(meshhdr, 0, sizeof(meshhdr)); + memset(meshhdr, 0, sizeof(*meshhdr)); meshhdr->ttl = sdata->u.mesh.mshcfg.dot11MeshTTL; put_unaligned(cpu_to_le32(sdata->u.mesh.mesh_seqnum), &meshhdr->seqnum); sdata->u.mesh.mesh_seqnum++;