Merge tag 'optee-fix2-for-v5.17' of git://git.linaro.org/people/jens.wiklander/linux...
[linux-2.6-microblaze.git] / drivers / tee / optee / ffa_abi.c
index f2bf6c6..f744ab1 100644 (file)
@@ -869,8 +869,10 @@ static int optee_ffa_probe(struct ffa_device *ffa_dev)
        optee_supp_init(&optee->supp);
        ffa_dev_set_drvdata(ffa_dev, optee);
        ctx = teedev_open(optee->teedev);
-       if (IS_ERR(ctx))
+       if (IS_ERR(ctx)) {
+               rc = PTR_ERR(ctx);
                goto err_rhashtable_free;
+       }
        optee->ctx = ctx;
        rc = optee_notif_init(optee, OPTEE_DEFAULT_MAX_NOTIF_VALUE);
        if (rc)