From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751369AbcEJEy6 (ORCPT ); Tue, 10 May 2016 00:54:58 -0400 Received: from lists.s-osg.org ([54.187.51.154]:38244 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751006AbcEJEy5 (ORCPT ); Tue, 10 May 2016 00:54:57 -0400 Subject: Re: [PATCHv5 1/8] i2c: Add pointer dereference protection to i2c_match_id() To: Kieran Bingham , Wolfram Sang , Lee Jones References: <1462374888-22888-1-git-send-email-kieran@bingham.xyz> <1462374888-22888-2-git-send-email-kieran@bingham.xyz> Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, grant.likely@linaro.org, sameo@linux.intel.com From: Javier Martinez Canillas Message-ID: <3f98dcb7-28a4-e415-dce6-28dd1edb7721@osg.samsung.com> Date: Tue, 10 May 2016 00:54:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <1462374888-22888-2-git-send-email-kieran@bingham.xyz> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/04/2016 11:14 AM, Kieran Bingham wrote: > From: Lee Jones > > Here we're providing dereference protection for i2c_match_id(), which > saves us having to do it each time it's called. We're also stripping > out the (now) needless checks in i2c_device_match(). This patch paves > the way for other, similar code trimming. > > Acked-by: Grant Likely > Signed-off-by: Lee Jones > Signed-off-by: Kieran Bingham > Tested-by: Kieran Bingham > --- Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America