diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-02 12:14:38 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-02 12:14:38 -0700 |
| commit | 0b0fa57a2772be5bcef199ae5e769295afec0de5 (patch) | |
| tree | c4a2c9e40bc9da3cb315877e8ca37ab659500716 /arch/mips/lantiq/falcon/sysctrl.c | |
| parent | 38904911e86495d4690f8d805720b90e65426c71 (diff) | |
| parent | 41022eff9c2d21e658c7a6fcd31005bf514d28b7 (diff) | |
| download | linux-0b0fa57a2772be5bcef199ae5e769295afec0de5.tar.gz linux-0b0fa57a2772be5bcef199ae5e769295afec0de5.tar.bz2 linux-0b0fa57a2772be5bcef199ae5e769295afec0de5.zip | |
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/lantiq/falcon/sysctrl.c')
| -rw-r--r-- | arch/mips/lantiq/falcon/sysctrl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/lantiq/falcon/sysctrl.c b/arch/mips/lantiq/falcon/sysctrl.c index 64726c670ca6..5204fc6d6d50 100644 --- a/arch/mips/lantiq/falcon/sysctrl.c +++ b/arch/mips/lantiq/falcon/sysctrl.c @@ -167,6 +167,8 @@ static inline void clkdev_add_sys(const char *dev, unsigned int module, { struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); + if (!clk) + return; clk->cl.dev_id = dev; clk->cl.con_id = NULL; clk->cl.clk = clk; |
