Commit d2913a0
committed
ALSA: pcm: Add sanity NULL check for the default mmap fault handler
A driver might allow the mmap access before initializing its
runtime->dma_area properly. Add a proper NULL check before passing to
virt_to_page() for avoiding a panic.
Reported-by: [email protected]
Cc: <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>1 parent 5638629 commit d2913a0
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3813 | 3813 | | |
3814 | 3814 | | |
3815 | 3815 | | |
3816 | | - | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
3817 | 3819 | | |
3818 | | - | |
| 3820 | + | |
3819 | 3821 | | |
3820 | 3822 | | |
3821 | 3823 | | |
| |||
0 commit comments