Skip to content
Commit 6d715790 authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Chris Metcalf
Browse files

tile: add null check for kzalloc in tile/kernel/setup.c



Should check the return value of kzalloc first to avoid the null pointer.
Then can dereference the non-null pointer to access the fields of struct
resource.

Signed-off-by: default avatarWang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent ce61cdc2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment