realtek: i2c-rtl9300: fix crash on block transfers
authorBjørn Mork <bjorn@mork.no>
Wed, 5 Feb 2025 06:19:10 +0000 (07:19 +0100)
committerSander Vanheule <sander@svanheule.net>
Tue, 25 Feb 2025 19:53:30 +0000 (20:53 +0100)
commitef4b022150a44e4e6c565f8f2e73ffae9175d01e
tree432484468f0e3385a374ebe4d70204db1f885d8d
parentd5dcb889066bb6189fe7d3a304c6b6b9e1b5bae9
realtek: i2c-rtl9300: fix crash on block transfers

Fix a typo which resulted in wrong .read hooks and unset .write
hooks.  This made I2C_SMBUS_BLOCK_DATA transfers dereference the
NULL .write hook and Oops.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Link: https://github.com/openwrt/openwrt/pull/17950
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-6.6/drivers/i2c/busses/i2c-rtl9300.c