Re: [PATCH] serial: max310x: Add error checking in probe()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 7, 2025 at 5:54 PM Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
>
> Check if devm_i2c_new_dummy_device() fails.

...

>                 port_client = devm_i2c_new_dummy_device(&client->dev,
>                                                         client->adapter,
>                                                         port_addr);
> +               if (IS_ERR(port_client))
> +                       return PTR_ERR(port_client);

I'm wondering if this is indeed a critical error in this case, but okay.

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux