Skip to contentSkip to conversation

[#3146] Re: ChaosBits.net - [PATCH] AudioScience HPI driver: Unsafe memory management when allocating control cache

DISCUSSION Sally Reich [via ASI support] 1 participant 1 message Oct 29, 2010 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

========================================================
This message and your reply sent to
Staff: [email protected], [email protected], [email protected]
Customers: [email protected], [email protected], [email protected], [email protected], [email protected]
========================================================
Hello Jesper,

A quick email to let you know that we received your email; our Linux developer should reply in the beginning of next week (I believe he is out of the office on Monday).

Regards,
~Sally

Quoted 7 lines · Sally Reich

Hi,

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.

<snip>