Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S944206AbcJSPGF (ORCPT ); Wed, 19 Oct 2016 11:06:05 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:33785 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S944131AbcJSPFi (ORCPT ); Wed, 19 Oct 2016 11:05:38 -0400 From: Ivan Safonov To: Greg Kroah-Hartman , Bhaktipriya Shridhar , Andy Shevchenko , Geliang Tang , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: insafonov@gmail.com Subject: [PATCH 17/37] staging:r8188eu: update pkt->data synchronously with rx_data Date: Wed, 19 Oct 2016 22:07:45 +0700 Message-Id: <1476889685-7367-17-git-send-email-insafonov@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1476889685-7367-1-git-send-email-insafonov@gmail.com> References: <1476889685-7367-1-git-send-email-insafonov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 737 Lines: 22 To replace rx_data with pkt->data. Now pkt->data is equal to rx_data. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index e661635..143e637 100644 --- a/drivers/staging/rtl8188eu/include/rtw_recv.h +++ b/drivers/staging/rtl8188eu/include/rtw_recv.h @@ -266,6 +266,7 @@ static inline u8 *recvframe_pull(struct recv_frame *precvframe, uint sz) if (precvframe == NULL) return NULL; + skb_pull(precvframe->pkt, sz); precvframe->rx_data += sz; if (precvframe->rx_data > precvframe->rx_tail) { precvframe->rx_data -= sz; -- 2.7.3