Skip to content
Commit d5414c23 authored by Aditya Pakki's avatar Aditya Pakki Committed by Kalle Valo
Browse files

rsi: Fix NULL pointer dereference in kmalloc



kmalloc can fail in rsi_register_rates_channels but memcpy still attempts
to write to channels. The patch replaces these calls with kmemdup and
passes the error upstream.

Signed-off-by: default avatarAditya Pakki <pakki001@umn.edu>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 9490c560
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment