Re: [PATCH] i2c: smbus: fix NULL function pointer dereference

Wolfram Sang
2024-04-26T06:43:21Z

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]

Hi Baruch,

> Callers of __i2c_transfer() must verify that master_xfer is not NULL.
> Check that before i2c_smbus_xfer_emulated() call.

Right, thank you very much for this report! I think we should have a
more defensive solution, though. I'll send my idea next. If you could
check it, that would be much appreciated.

All the best,

Wolfram

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]