Re: [PATCHv5 1/8] i2c: Add pointer dereference protection to i2c_match_id()
From: Javier Martinez Canillas
Date: Tue May 10 2016 - 00:55:01 EST
On 05/04/2016 11:14 AM, Kieran Bingham wrote:
> From: Lee Jones <lee.jones@xxxxxxxxxx>
>
> 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 <grant.likely@xxxxxxxxxx>
> Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
> Signed-off-by: Kieran Bingham <kieran@xxxxxxxxxxx>
> Tested-by: Kieran Bingham <kieran@xxxxxxxxxxx>
> ---
Reviewed-by: Javier Martinez Canillas <javier@xxxxxxxxxxxxxxx>
Tested-by: Javier Martinez Canillas <javier@xxxxxxxxxxxxxxx>
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America