]> www.infradead.org Git - users/jedix/linux-maple.git/commit
optee: Fix a NULL vs IS_ERR() check
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 5 Sep 2024 13:17:06 +0000 (16:17 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 9 Sep 2024 10:22:06 +0000 (12:22 +0200)
commit73048a832587520c6222bacbe1bc7121409d8861
tree2d8640d37afb1cd9130e633d29802a1204fe8aa3
parentcf6444ba528f043398b112ac36e041a4d8685cb1
optee: Fix a NULL vs IS_ERR() check

The tee_shm_get_va() function never returns NULL, it returns error
pointers.  Update the check to match.

Fixes: f0c8431568ee ("optee: probe RPMB device using RPMB subsystem")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Link: https://lore.kernel.org/r/f8c12aed-b5d1-4522-bf95-622b8569706d@stanley.mountain
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/tee/optee/rpc.c