Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1612130

Re: [PATCH] Add checks for kmalloc allocation failures

From Eric Dumazet <eric.dumazet@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Add checks for kmalloc allocation failures
Date 2017-03-29 18:30 +0200
Message-ID <tqoDU-ZD-17@gated-at.bofh.it> (permalink)
References <tqoaS-AU-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 2017-03-29 at 16:54 +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Ensure we don't end up with a null pointer dereferences by checking
> for for allocation failures.  Allocate by sizeof(*ptr) rather than
> the type to fix checkpack warnings.  Also merge multiple lines into
> one line for the kmalloc call.
> 
> Detected by CoverityScan, CID#1422435 ("Dereference null return value")

OK, but could you change patch title to be less generic ?

Also, what tree is this patch targeting ?

# ls -l drivers/net/ieee802154/ca8210.c 
ls: cannot access drivers/net/ieee802154/ca8210.c: No such file or
directory

Thanks.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Add checks for kmalloc allocation failures Colin King <colin.king@canonical.com> - 2017-03-29 18:00 +0200
  Re: [PATCH] Add checks for kmalloc allocation failures Eric Dumazet <eric.dumazet@gmail.com> - 2017-03-29 18:30 +0200
    Re: [PATCH] Add checks for kmalloc allocation failures Stefan Schmidt <stefan@osg.samsung.com> - 2017-03-30 04:00 +0200
  Re: [PATCH] Add checks for kmalloc allocation failures walter harms <wharms@bfs.de> - 2017-03-29 21:00 +0200

csiph-web