mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
staging: westbridge: improve error path
kmalloc() may fail, check for it. Allocated memory is not freed. Use IS_ERR() instead of strict checking. Signed-off-by: Vasiliy Kulikov <segooon@gmail.com> Cc: David Cross <david.cross@cypress.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ec53d6123b
commit
7b1f6bfb03
1 changed files with 9 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue