diff options
author | 2023-04-14 14:32:54 +0200 | |
---|---|---|
committer | 2023-04-14 14:32:55 +0200 | |
commit | 9f8f0d07249bb738d78e58c9554d0907f963b60d (patch) | |
tree | d906c83ebda5f5d41c991f551cc88575b68f015a /drivers/soc | |
parent | Merge tag 'sunxi-drivers-for-6.4-1' of https://git.kernel.org/pub/scm/linux/k... (diff) | |
parent | soc: renesas: renesas-soc: Release 'chipid' from ioremap() (diff) | |
download | linux-9f8f0d07249bb738d78e58c9554d0907f963b60d.tar.gz linux-9f8f0d07249bb738d78e58c9554d0907f963b60d.tar.bz2 linux-9f8f0d07249bb738d78e58c9554d0907f963b60d.zip |
Merge tag 'renesas-drivers-for-v6.4-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into soc/drivers
Renesas driver updates for v6.4 (take two)
- Add "renesas," file contents pattern to MAINTAINERS,
- Fix a small leak on OOM.
* tag 'renesas-drivers-for-v6.4-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
soc: renesas: renesas-soc: Release 'chipid' from ioremap()
MAINTAINERS: renesas: Add "renesas," file contents pattern
Link: https://lore.kernel.org/r/cover.1681113115.git.geert+renesas@glider.be
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/renesas/renesas-soc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c index 4ba893e45427..42af7c09f743 100644 --- a/drivers/soc/renesas/renesas-soc.c +++ b/drivers/soc/renesas/renesas-soc.c @@ -469,8 +469,11 @@ static int __init renesas_soc_init(void) } soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); - if (!soc_dev_attr) + if (!soc_dev_attr) { + if (chipid) + iounmap(chipid); return -ENOMEM; + } np = of_find_node_by_path("/"); of_property_read_string(np, "model", &soc_dev_attr->machine); |