Commit c42b14da authored by Devin Kim's avatar Devin Kim Committed by Naseer Ahmed
Browse files

msm: display: check get_unused_fd_flags return val



Not checking the error code, which might be negative, will cause us to wrongly
reference fdt[fd] by using the error code, causing kernel panic in fd_install.

Change-Id: I1f8e68e74bdbdd5b81bc3450f7d93b5cd96c9439
Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
Signed-off-by: default avatarNaseer Ahmed <naseer@codeaurora.org>
parent 59d758f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment