Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2437734ybz; Sun, 3 May 2020 00:50:52 -0700 (PDT) X-Google-Smtp-Source: APiQypLyOzi50JBhr/c7r5TegXFMQwCkkc15+xv+pCGaHPshFY1q+EMBIZfcasgTGc+IBQrpLE6n X-Received: by 2002:a05:6402:b4e:: with SMTP id bx14mr9961440edb.1.1588492251994; Sun, 03 May 2020 00:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588492251; cv=none; d=google.com; s=arc-20160816; b=lfjqR256eXZfVxYQYLLhiekNoyw9q+uAS4SuFXpl1ILqmrVV0VfOstpmBy31f4rEUi 4aVl6ju83nttdyFvEgYf0KmCSDamArNIrkXHBQXztMlVPcyJXfLGfGhEAcIsnt+886je K6H9094bV8LXv0tOnN1xSjOxj1+sbPiCMJcsTvQKr2sjAxVWtTJD239ERMO8nio90iBy wKeZWeee1DVCfYUnQLyIWt72ExC71VfZiO5OmV5OfYkkY8PJRWdoS4fEuyQc8O1EPWmW Un4+IUN6Bid25YGfPWwWwcta9HeeMP13/F2PLPNCi3cRjSZc67i1t/MwDkd4uTtnFSSL uwbQ== 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 :dkim-signature; bh=yoZlQjl/x6cvb/lf2e7mFi6COT5zOUBlhTgUydzzl7s=; b=u85Uaao6kMhgdiWQbWD9hFwqCXZcBKZ68K+ToiwvhC+v3967q3RzLqO+24yjHmG3Pt wYYw+eqjOuQI7QHhVLrQfvgyGfx6cvi0K9nogFyWLBXvyo5F2j9Ib7ZxCBMbFYfz6fO2 wILJ5M/CpfY3YUdgsEc8ir6hdIufXsYpAAmTOMHcXbPa1kcFD/xJtNX7Lri/yOmBhV+2 aitLdniedL9XXTOtJwWfxGq80SWnntfOaURdwI2rxy9E0MOw35fO2Gguo+lhsQrTaD+a zYr49RObBr8p8GDVoScQGd2OT1O8ylC4jcYql1NJtCC4UADNamdu10Aw8IriaKKLz2s4 nkEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cmWdjcWm; 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 r12si4743627edw.278.2020.05.03.00.50.16; Sun, 03 May 2020 00:50:51 -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; dkim=pass header.i=@kernel.org header.s=default header.b=cmWdjcWm; 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 S1727101AbgECHra (ORCPT + 99 others); Sun, 3 May 2020 03:47:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:53500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726884AbgECHr3 (ORCPT ); Sun, 3 May 2020 03:47:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 132492078E; Sun, 3 May 2020 07:47:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588492047; bh=dFV2e4YWFSavsf0eXpuyLOj5IEY9P9HmvZlhRFbJusM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cmWdjcWmqB5orlckKy6/wpOZpiYxX44UDsCoKYHqEQXDwrM5wOJBL3A+n48FhAeci Fq0da8AyvouA1ntX+V5+fdppYTv3sPhehD/L08sVrELUwlnaK/fowNKi6BlFLOGdmp O9eE3bQ5uwTFBKvhAv5yd6hWtGB4L24IuPiGSpxQ= Date: Sun, 3 May 2020 09:47:25 +0200 From: Greg Kroah-Hartman To: Richard Yeh Cc: Rob Springer , Todd Poynor , Ben Chan , Oscar Carter , Simon Que , John Joseph , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: gasket: Check the return value of gasket_get_bar_index() Message-ID: <20200503074725.GC536697@kroah.com> References: <20200501155118.13380-1-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 02, 2020 at 05:59:18PM -0400, Richard Yeh wrote: > Hi, as a new maintainer, I thought I would try to handle this one. Great, as a start: A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top > This patch looks good to me. This new check properly protects against using > a negative return value from gasket_get_bar_index() to index into a > pointer. The gasket_get_bar_index function is called in two other places > (old lines 845 and 1044) and both other places check the bar_index return > value for negative values and return error values. > > What is the next step in the process? How do I test the patch? Does Greg > K-H take these patches directly, or is there something else I should do > (looking at > https://github.com/gregkh/presentation-linux-maintainer/blob/master/maintainer.pdf > page > 5: clone from > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git, ...)? Just send a "Reviewed-by:" to the patch and I can take it from there. Also, I strongly suggest going and talking to your co-maintainers for exactly how to do this, normally at this point in the process you already know this as it is usually an experienced developer doing the maintaining. thanks, greg k-h