Skip to content
Unverified Commit e9800482 authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by Mark Brown
Browse files

spi: orion: set devdata properly as it is being used later



If device_get_match_data returns NULL, devdata isn't being updated
properly. It is being used later in the function. Both devdata and
spi->devdata should be updated to avoid NULL pointer dereference.

Addresses-Coverity: ("NULL pointer dereference")
Fixes: 0e6521f1 ("spi: orion: Use device_get_match_data() helper")
Signed-off-by: default avatarMuhammad Usama Anjum <musamaanjum@gmail.com>
Link: https://lore.kernel.org/r/20210408195718.GA3075166@LEGION


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4df2f5e1
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