From patchwork Mon Sep 10 17:55:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Dumazet X-Patchwork-Id: 1433231 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 754C1DF28C for ; Mon, 10 Sep 2012 17:55:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757103Ab2IJRzZ (ORCPT ); Mon, 10 Sep 2012 13:55:25 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:34616 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756964Ab2IJRzY (ORCPT ); Mon, 10 Sep 2012 13:55:24 -0400 Received: by eekc1 with SMTP id c1so1376894eek.19 for ; Mon, 10 Sep 2012 10:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; bh=t3632IbLL/wQmMLAa/azEIlF4rJtgFJWVyVSpGsXlhc=; b=P2bOP3l/OF6iAwu5ljfurhJZ9TK5JVv4kXDsVuqjfpwj8GLNc+Xttlh1Q67NtJhiIK OW9AnNH1z8Z70DwPTxYwIFoYni6Nb5ol4lXHof0EDv0aMNmIwDVvekzuybWgUfQJnTLI cyuWsqjcaQqwrD11aTzh78pTTtg+3+y8zho5Gr0zKA1avCl8aag08VidLnZECy4uboJH lii+euZIttUkPZwjIfVQfDDA4rZ3c+0Q3l74FG30wzLnIn+vY8/GiS3iAGHUZbaOWgTd IG/WgEkrPVIea1T3xH5zs/UwPozivx5mbni+Y7jQFpKgfe0LCjfltHuEuuKlpRHQQ8up +k+g== Received: by 10.204.154.211 with SMTP id p19mr4203350bkw.12.1347299723091; Mon, 10 Sep 2012 10:55:23 -0700 (PDT) Received: from [172.28.90.190] ([172.28.90.190]) by mx.google.com with ESMTPS id n5sm7946478bkv.14.2012.09.10.10.55.17 (version=SSLv3 cipher=OTHER); Mon, 10 Sep 2012 10:55:18 -0700 (PDT) Subject: [PATCH] staging: r8712u: fix bug in r8712_recv_indicatepkt() From: Eric Dumazet To: Larry Finger Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org, netdev In-Reply-To: <1347289446.1234.1717.camel@edumazet-glaptop> References: <50369925.3050705@lwfinger.net> <1345757200.5904.1890.camel@edumazet-glaptop> <50378B35.80307@lwfinger.net> <20120824.111948.680531915905273128.davem@davemloft.net> <5037A4B0.3080208@lwfinger.net> <1345825095.19483.19.camel@edumazet-glaptop> <1345825432.19483.20.camel@edumazet-glaptop> <5037B2AC.50704@lwfinger.net> <1345830424.19483.69.camel@edumazet-glaptop> <503BB49C.5010402@lwfinger.net> <1347266366.1234.1267.camel@edumazet-glaptop> <504DFEFF.6060004@lwfinger.net> <1347289446.1234.1717.camel@edumazet-glaptop> Date: Mon, 10 Sep 2012 19:55:15 +0200 Message-ID: <1347299715.1234.1902.camel@edumazet-glaptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Eric Dumazet 64bit arches have a buggy r8712u driver, let's fix it. Signed-off-by: Eric Dumazet --- drivers/staging/rtl8712/recv_linux.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/staging/rtl8712/recv_linux.c b/drivers/staging/rtl8712/recv_linux.c index 0e26d5f..495ee12 100644 --- a/drivers/staging/rtl8712/recv_linux.c +++ b/drivers/staging/rtl8712/recv_linux.c @@ -117,13 +117,8 @@ void r8712_recv_indicatepkt(struct _adapter *padapter, if (skb == NULL) goto _recv_indicatepkt_drop; skb->data = precv_frame->u.hdr.rx_data; -#ifdef NET_SKBUFF_DATA_USES_OFFSET - skb->tail = (sk_buff_data_t)(precv_frame->u.hdr.rx_tail - - precv_frame->u.hdr.rx_head); -#else - skb->tail = (sk_buff_data_t)precv_frame->u.hdr.rx_tail; -#endif skb->len = precv_frame->u.hdr.len; + skb_set_tail_pointer(skb, skb->len); if ((pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1)) skb->ip_summed = CHECKSUM_UNNECESSARY; else