Re: [PATCH v1 1/1] i2c: smbus: Check for parent device before dereference

From: Wolfram Sang
Date: Sat Feb 19 2022 - 06:46:45 EST


On Fri, Feb 04, 2022 at 05:59:20PM +0200, Andy Shevchenko wrote:
> An I²C adapter might be instantiated without parent. In such case
> there is no property can be retrieved. Skip SMBus alert setup when
> this happens.
>
> Fixes: a263a84088f6 ("i2c: smbus: Use device_*() functions instead of of_*()")
> Reported-by: syzbot+0591ccf54ee05344e4eb@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

Applied to for-next, thanks!

Attachment: signature.asc
Description: PGP signature