Re: [PATCH] i2c: i2c-mt65xx: fix NULL ptr dereference

Wolfram Sang
2019-09-28T18:33:26Z

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

> - if (adap->quirks->flags & I2C_AQ_NO_ZERO_LEN)
> + if (adap->quirks && adap->quirks->flags & I2C_AQ_NO_ZERO_LEN)

Right. Please use i2c_check_quirks(). Otherwise thanks for the catch!

@Mediatek-people: can we have a dedicated maintainer for this driver to
better prevent stuff like this from happening again?

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