]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: avb_verify: prevent opening incorrect session
authorIvan Khoronzhuk <ivan.khoronzhuk@gmail.com>
Fri, 27 Jan 2023 20:02:14 +0000 (22:02 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 17 Feb 2023 15:51:28 +0000 (10:51 -0500)
commit3106e475243e1e35df18d5086f7a5df8758bbda1
tree94338bc92230241c8415fe69fcd33ea3dcb40dcb
parentaa0a8a0be2401abbe26f4e5294a24216399c8291
common: avb_verify: prevent opening incorrect session

The arg->session is not valid if arg->ret != NULL, so can't be
assigned, correct this.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@globallogic.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
common/avb_verify.c