Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'reset-fixes-for-v6.17' of https://git.pengutronix.de/git/pza/linux into arm/fixes

Reset controller fixes for v6.17

* Fix an OF node reference leak in the EyeQ reset controller driver.

* tag 'reset-fixes-for-v6.17' of https://git.pengutronix.de/git/pza/linux:
reset: eyeq: fix OF node leak

Link: https://lore.kernel.org/r/20250904153345.2374313-1-p.zabel@pengutronix.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+11
+11
drivers/reset/reset-eyeq.c
··· 410 410 return eqr_of_xlate_internal(rcdev, reset_spec->args[0], reset_spec->args[1]); 411 411 } 412 412 413 + static void eqr_of_node_put(void *_dev) 414 + { 415 + struct device *dev = _dev; 416 + 417 + of_node_put(dev->of_node); 418 + } 419 + 413 420 static int eqr_probe(struct auxiliary_device *adev, 414 421 const struct auxiliary_device_id *id) 415 422 { ··· 434 427 device_set_of_node_from_dev(dev, dev->parent); 435 428 if (!dev->of_node) 436 429 return -ENODEV; 430 + 431 + ret = devm_add_action_or_reset(dev, eqr_of_node_put, dev); 432 + if (ret) 433 + return ret; 437 434 438 435 /* 439 436 * Using our newfound OF node, we can get match data. We cannot use