diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-02 22:14:38 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-02 22:14:38 +0300 |
commit | 0b0fa57a2772be5bcef199ae5e769295afec0de5 (patch) | |
tree | c4a2c9e40bc9da3cb315877e8ca37ab659500716 /arch/mips/sgi-ip22/ip22-gio.c | |
parent | 38904911e86495d4690f8d805720b90e65426c71 (diff) | |
parent | 41022eff9c2d21e658c7a6fcd31005bf514d28b7 (diff) | |
download | linux-0b0fa57a2772be5bcef199ae5e769295afec0de5.tar.xz |
Merge tag 'mips_5.18_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS fixes from Thomas Bogendoerfer:
- build fix for gpio
- fix crc32 build problems
- check for failed memory allocations
* tag 'mips_5.18_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
MIPS: crypto: Fix CRC32 code
MIPS: rb532: move GPIOD definition into C-files
MIPS: lantiq: check the return value of kzalloc()
mips: sgi-ip22: add a check for the return of kzalloc()
Diffstat (limited to 'arch/mips/sgi-ip22/ip22-gio.c')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-gio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/sgi-ip22/ip22-gio.c b/arch/mips/sgi-ip22/ip22-gio.c index dfc52f661ad0..38d12f417e48 100644 --- a/arch/mips/sgi-ip22/ip22-gio.c +++ b/arch/mips/sgi-ip22/ip22-gio.c @@ -363,6 +363,8 @@ static void ip22_check_gio(int slotno, unsigned long addr, int irq) printk(KERN_INFO "GIO: slot %d : %s (id %x)\n", slotno, name, id); gio_dev = kzalloc(sizeof *gio_dev, GFP_KERNEL); + if (!gio_dev) + return; gio_dev->name = name; gio_dev->slotno = slotno; gio_dev->id.id = id; |