From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC124C433E1 for ; Fri, 12 Jun 2020 20:51:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C104B20801 for ; Fri, 12 Jun 2020 20:51:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726335AbgFLUvw (ORCPT ); Fri, 12 Jun 2020 16:51:52 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:38772 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726268AbgFLUvw (ORCPT ); Fri, 12 Jun 2020 16:51:52 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1jjqeR-000Kex-1H; Fri, 12 Jun 2020 22:51:47 +0200 Date: Fri, 12 Jun 2020 22:51:47 +0200 From: Andrew Lunn To: Aditya Pakki Cc: kjlu@umn.edu, wu000273@umn.edu, "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: Fix a potential incorrect error handling in rawsock_connect Message-ID: <20200612205147.GC69216@lunn.ch> References: <20200612203745.58304-1-pakki001@umn.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200612203745.58304-1-pakki001@umn.edu> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Jun 12, 2020 at 03:37:43PM -0500, Aditya Pakki wrote: > In rawsock_connect, the device is allocated by calling nfc_get_device. > In case of incorrect bounds index, the device should be freed by > calling nfc_put_device. The patch fixes this issue. Hi Aditya Putting nfc in the Subject: would of been nice. People are more likely to review your patch if they can easily spot it modifies some core they are interested in. The name of the driver, or the subsystem in net/ is something that people look out for. You might also want to read the netdev FAQ. Andrew