aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-10-28 07:06:47 +0000
committerGreg Kroah-Hartman <[email protected]>2019-11-04 14:01:23 +0000
commit063f097fd65a90fca2cd49411a2d6e35b8ca25db (patch)
treef423370f4fad75a99996c1cf433d483abfe1b662 /drivers/net/xen-netback/interface.c
parentintel_th: msu: Fix an uninitialized mutex (diff)
downloadkernel-063f097fd65a90fca2cd49411a2d6e35b8ca25db.tar.gz
kernel-063f097fd65a90fca2cd49411a2d6e35b8ca25db.zip
intel_th: msu: Fix missing allocation failure check on a kstrndup
Commit 615c164da0eb ("intel_th: msu: Introduce buffer interface") forgot to add a NULL pointer check for the value returned from kstrdup(), which will be troublesome if the allocation fails. Fix that by adding the check. Addresses-Coverity: ("Dereference null return") Fixes: 615c164da0eb ("intel_th: msu: Introduce buffer interface") Signed-off-by: Colin Ian King <[email protected]> [alexander.shishkin: amended the commit message] Signed-off-by: Alexander Shishkin <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions