Skip to content

Commit 64b9175

Browse files
committed
Merge tag 'optee-fix-for-v6.8' of https://git.linaro.org/people/jens.wiklander/linux-tee into arm/fixes
Fix kernel panic in OP-TEE driver * tag 'optee-fix-for-v6.8' of https://git.linaro.org/people/jens.wiklander/linux-tee: tee: optee: Fix kernel panic caused by incorrect error handling Link: https://lore.kernel.org/r/20240304132727.GA3501807@rayden Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 35edcf6 + 95915ba commit 64b9175

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/tee/optee/device.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,14 @@ static int optee_register_device(const uuid_t *device_uuid, u32 func)
9090
if (rc) {
9191
pr_err("device registration failed, err: %d\n", rc);
9292
put_device(&optee_device->dev);
93+
return rc;
9394
}
9495

9596
if (func == PTA_CMD_GET_DEVICES_SUPP)
9697
device_create_file(&optee_device->dev,
9798
&dev_attr_need_supplicant);
9899

99-
return rc;
100+
return 0;
100101
}
101102

102103
static int __optee_enumerate_devices(u32 func)

0 commit comments

Comments
 (0)