mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
mtd: docg3: Fix kasprintf() usage
commit 0eb8618bd0 upstream.
kasprintf() does a dynamic memory allocation and can fail.
We have to handle that case.
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
877ea54ae7
commit
2b651dccb5
1 changed files with 8 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue