From patchwork Sun Dec 13 11:42:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 66993 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBDBglCZ026768 for ; Sun, 13 Dec 2009 11:42:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752682AbZLMLmN (ORCPT ); Sun, 13 Dec 2009 06:42:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752632AbZLMLmN (ORCPT ); Sun, 13 Dec 2009 06:42:13 -0500 Received: from mgw2.diku.dk ([130.225.96.92]:39108 "HELO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752587AbZLMLmK (ORCPT ); Sun, 13 Dec 2009 06:42:10 -0500 Received: from localhost (localhost [127.0.0.1]) by mgw2.diku.dk (Postfix) with ESMTP id 5B3AF19BB9A; Sun, 13 Dec 2009 12:42:08 +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 10371-12; Sun, 13 Dec 2009 12:42:07 +0100 (CET) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw2.diku.dk (Postfix) with ESMTP id 36F8619BB95; Sun, 13 Dec 2009 12:42:07 +0100 (CET) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id D34586DF845; Sun, 13 Dec 2009 12:38:15 +0100 (CET) Received: by ask.diku.dk (Postfix, from userid 3767) id 1C1F4480B; Sun, 13 Dec 2009 12:42:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 145B64225; Sun, 13 Dec 2009 12:42:07 +0100 (CET) Date: Sun, 13 Dec 2009 12:42:07 +0100 (CET) From: Julia Lawall To: Ivo van Doorn , Gertjan van Wingerde , "John W. Linville" , linux-wireless@vger.kernel.org, users@rt2x00.serialmonkey.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 5/9] drivers/net/wireless: Correct code taking the size of a pointer 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 --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index eb1e1d0..1e74732 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c @@ -2140,8 +2140,8 @@ static void rt2800_get_tkip_seq(struct ieee80211_hw *hw, u8 hw_key_idx, rt2800_register_multiread(rt2x00dev, offset, &iveiv_entry, sizeof(iveiv_entry)); - memcpy(&iveiv_entry.iv[0], iv16, sizeof(iv16)); - memcpy(&iveiv_entry.iv[4], iv32, sizeof(iv32)); + memcpy(&iveiv_entry.iv[0], iv16, sizeof(*iv16)); + memcpy(&iveiv_entry.iv[4], iv32, sizeof(*iv32)); } static int rt2800_set_rts_threshold(struct ieee80211_hw *hw, u32 value)