From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next v2] net: qualcomm: rmnet: Fix use after free while sending command ack Date: Tue, 05 Jun 2018 10:17:32 -0400 (EDT) Message-ID: <20180605.101732.2262418835752372627.davem@davemloft.net> References: <1528163018-16113-1-git-send-email-subashab@codeaurora.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: subashab@codeaurora.org Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:36600 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbeFEORe (ORCPT ); Tue, 5 Jun 2018 10:17:34 -0400 In-Reply-To: <1528163018-16113-1-git-send-email-subashab@codeaurora.org> Sender: netdev-owner@vger.kernel.org List-ID: From: Subash Abhinov Kasiviswanathan Date: Mon, 4 Jun 2018 19:43:38 -0600 > When sending an ack to a command packet, the skb is still referenced > after it is sent to the real device. Since the real device could > free the skb, the device pointer would be invalid. > Also, remove an unnecessary variable. > > Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation") > Signed-off-by: Subash Abhinov Kasiviswanathan Applied.