Skip to content

Commit

Permalink
Merge tag 'i2c-for-6.15-rc3' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/git/wsa/linux

Pull i2c fixes from Wolfram Sang:

 - Address translator: fix wrong include

 - ChromeOS EC tunnel: fix potential NULL pointer dereference

* tag 'i2c-for-6.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
  i2c: atr: Fix wrong include
  i2c: cros-ec-tunnel: defer probe if parent EC is not present
  • Loading branch information
Linus Torvalds committed Apr 19, 2025
2 parents fa6ad96 + 24aaced commit 6fe8131
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions drivers/i2c/busses/i2c-cros-ec-tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/i2c-atr.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
* Originally based on i2c-mux.c
*/

#include <linux/fwnode.h>
#include <linux/i2c-atr.h>
#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/property.h>
#include <linux/slab.h>
#include <linux/spinlock.h>

Expand Down

0 comments on commit 6fe8131

Please sign in to comment.