Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp757356ybg; Fri, 12 Jun 2020 13:55:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwk+CaTIo4TAANiNFPaA1bc21uFquUZNjNM2RRheOGjFYYn1409nwiHkXiCnsnwcTH1yYwl X-Received: by 2002:a17:906:799:: with SMTP id l25mr14711742ejc.234.1591995358142; Fri, 12 Jun 2020 13:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591995358; cv=none; d=google.com; s=arc-20160816; b=kAG2/5kyRnUA4T07bfhAV7KaQn8XTRcK9DuQhXbjc4VMd6vkLB3qrIHLp4Dvh/i4dI l8W6bLjiA+RXhR9cGmxc7h62kcujthil20VkS17aj5iwfr7IMz/9roVV/xbNXTG++Hia ysjJlYdEmcqs/O5RA3Q1h7VWsLkupX7jh83Vp2DHRxF5K1M+5eXM2XSjnrw5zymCNVhS 4RNBow7JNjy6l2bB33GUnKym9rxZBxiCkGxT8eXSu9egMFwAq5rsxo4IK23ZSOfwsr+t gfiLtAFtCUsbS7Xi6TTTzXYOFbgFXdt06+P89qujRpQtxYBFmRj6ocLA3HrVhOsCdFCS 7Z8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=BUBdw9sOqzoKb5uQiVV8UA4x8597SQChegc68TFPrZg=; b=Rc8vx3v+XC8Wiw+mCZkzHa6rDJe6Y90SSornEHh52L1+7P+BeAE2kdAi7xVoPeOWff r7a62SJ+1kNzkm/AI/9ERxranorfRHwgZHzavLmcLNoVREJmdPRQ7VeBmm8QqctICu1G pJxrbgRoXvxYiKMjUsH68zl9HM5BsShK4ZfscwjErTzTIXM1LjfMk1FSn8Ih+Zod1FqI B3B6+jOw+ZB5EM93gshWacjHt2UKwQG6hAmnNUW8BBrx1P3vC/ntX0bfdzLX9QX6sHrj MrnhhU49p58ny22CMPYxI1918D9LI3u2OamrDZXO02TUxsW18U048Be4yAjZVYEkO6CK khWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c16si4102536ejx.310.2020.06.12.13.55.34; Fri, 12 Jun 2020 13:55:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726343AbgFLUvw (ORCPT + 99 others); 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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