Re: [PATCH] i2c: i2c-mt65xx: fix NULL ptr dereference
From: Wolfram Sang
Date: Sat Sep 28 2019 - 14:33:54 EST
> - 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:
signature.asc
Description: PGP signature