File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -869,8 +869,10 @@ static int optee_ffa_probe(struct ffa_device *ffa_dev)
869
869
optee_supp_init (& optee -> supp );
870
870
ffa_dev_set_drvdata (ffa_dev , optee );
871
871
ctx = teedev_open (optee -> teedev );
872
- if (IS_ERR (ctx ))
872
+ if (IS_ERR (ctx )) {
873
+ rc = PTR_ERR (ctx );
873
874
goto err_rhashtable_free ;
875
+ }
874
876
optee -> ctx = ctx ;
875
877
rc = optee_notif_init (optee , OPTEE_DEFAULT_MAX_NOTIF_VALUE );
876
878
if (rc )
Original file line number Diff line number Diff line change @@ -1417,8 +1417,10 @@ static int optee_probe(struct platform_device *pdev)
1417
1417
1418
1418
platform_set_drvdata (pdev , optee );
1419
1419
ctx = teedev_open (optee -> teedev );
1420
- if (IS_ERR (ctx ))
1420
+ if (IS_ERR (ctx )) {
1421
+ rc = PTR_ERR (ctx );
1421
1422
goto err_supp_uninit ;
1423
+ }
1422
1424
optee -> ctx = ctx ;
1423
1425
rc = optee_notif_init (optee , max_notif_value );
1424
1426
if (rc )
You can’t perform that action at this time.
0 commit comments