mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
If kcalloc() return NULL due to memory starvation, it is possible for kstrdup() to return NULL in similar case. So add null check after the call to kstrdup() is made. [ minor coding-style fix by tiwai ] Signed-off-by: Austin Kim <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/20211109003742.GA5423@raspberrypi Signed-off-by: Takashi Iwai <[email protected]>