Commit 24aaced7 authored by Wolfram Sang's avatar Wolfram Sang
Browse files

Merge tag 'i2c-host-fixes-6.15-rc3' of...

Merge tag 'i2c-host-fixes-6.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-current

i2c-host-fixes for v6.15-rc3

- ChromeOS EC tunnel: fix potential NULL pointer dereference
parents 75caec0c 424eafe6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -247,6 +247,9 @@ static int ec_i2c_probe(struct platform_device *pdev)
	u32 remote_bus;
	int err;

	if (!ec)
		return dev_err_probe(dev, -EPROBE_DEFER, "couldn't find parent EC device\n");

	if (!ec->cmd_xfer) {
		dev_err(dev, "Missing sendrecv\n");
		return -EINVAL;