lkml.org 
[lkml]   [2021]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1] ALSA: vx222: fix null-ptr-deref
On Tue, 07 Sep 2021 03:47:45 +0200,
Tong Zhang wrote:
>
> a recent refactor created a null pointer vx in snd_vx222_probe().
> The vx pointer should have been populated in snd_vx222_create() as
> suggested in earlier version, otherwise vx->core.ibl.size will throw an
> error.
>
> [ 1.298398] BUG: kernel NULL pointer dereference, address: 00000000000001d8
> [ 1.316799] RIP: 0010:snd_vx222_probe+0x155/0x290 [snd_vx222]
>
> Fixes: 3bde3359aa16 ("ALSA: vx222: Allocate resources with device-managed APIs")
> Signed-off-by: Tong Zhang <ztong0001@gmail.com>

Thanks, applied.


Takashi

\
 
 \ /
  Last update: 2021-09-09 09:36    [W:2.670 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site