“6e622660d1c942639a43aa88cd9c107bca8e11fe”上不存在“test/sun/git@gitcode.net:openanolis/dragonwell8_jdk.git”
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: NMuhammad Usama Anjum <musamaanjum@gmail.com>
Link: https://lore.kernel.org/r/20210408195718.GA3075166@LEGIONSigned-off-by: NMark Brown <broonie@kernel.org>
Showing
想要评论请 注册 或 登录