summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-09-07 03:00:46 +0200
committerTom Rini <[email protected]>2025-09-16 16:14:18 -0600
commit1c735620e19e2ae07705cc38da1552ee6a696ff0 (patch)
tree463e287b2f62002ccacbfcf08388de48c4fc7e9e /include/linux
parentc6a4b44cdcc11431223a9d9db17de0c587d49c72 (diff)
board: dhelectronics: Check pointer before access in dh_get_value_from_eeprom_buffer()
The eip pointer in dh_get_value_from_eeprom_buffer() might be NULL. The current NULL pointer check happens too late, after the eip was accessed in variable assignment. Reorder the two, so the NULL pointer check happens first, and any access second, otherwise the access may trigger a hang or other undefined behavior. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Christoph Niedermaier <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions