lkml.org 
[lkml]   [2017]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] gpio: mockup: fix a return value check
On Wed, Dec 6, 2017 at 5:30 PM, Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> The return value of platform_device_register_resndata() on error is
> an error code converted to pointer with ERR_PTR(), not NULL.
>
> Check the return value correctly.
>
> Fixes: 8a39f597bcfd ("gpio: mockup: rework device probing")
> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>

Patch applied.

Yours,
Linus Walleij

\
 
 \ /
  Last update: 2017-12-08 15:34    [W:0.029 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site