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

From: Sally Reich [via ASI support]
Date: Fri Oct 29 2010 - 16:53:01 EST


========================================================
This message and your reply sent to
Staff: eblennerhassett@xxxxxxxxxxxxxxxx, linux@xxxxxxxxxxxxxxxx, sreich@xxxxxxxxxxxxxxxx
Customers: jj@xxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, alsa-devel@xxxxxxxxxxxxxxxx, perex@xxxxxxxx, tiwai@xxxxxxx
========================================================
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

On Fri, 29 Oct 2010, 16:15:24 EDT, Sally Reich wrote:
>
> 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>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/