diff options
author | Jesper Juhl <[email protected]> | 2010-10-29 21:35:25 +0200 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2010-11-02 07:38:21 +0100 |
commit | fd0977d0f42d3e73121b88f57c7d48ca9b861a58 (patch) | |
tree | 6a851561a7a67d660f5ce5260f6e6429fed0eccc /net/unix/sysctl_net_unix.c | |
parent | f7467452291f7c9e5e1271e8c8e45b77f34b1257 (diff) |
ALSA: asihpi - Unsafe memory management when allocating control cache
I noticed that sound/pci/asihpi/hpicmn.c::hpi_alloc_control_cache() does
not check the return value from kmalloc(), which may fail.
If kmalloc() fails we'll dereference a null pointer and things will go bad
fast.
There are two memory allocations in that function and there's also the
problem that the first may succeed and the second may fail and nothing is
done about that either which will also go wrong down the line.
Signed-off-by: Jesper Juhl <[email protected]>
Acked-by: Eliot Blennerhassett <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions