summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/tlk_driver/ote_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tlk_driver/ote_device.c b/security/tlk_driver/ote_device.c
index bfc59d3cb94c..d7dfd7a94d6f 100644
--- a/security/tlk_driver/ote_device.c
+++ b/security/tlk_driver/ote_device.c
@@ -76,7 +76,7 @@ static int te_create_free_cmd_list(struct tlk_device *dev)
&dev->param_addr_phys, GFP_KERNEL);
}
- if ((dev->req_addr == NULL) || (dev->param_addr == NULL)) {
+ if (!dev->req_addr || !dev->param_addr || !dev->req_param_buf) {
ret = -ENOMEM;
goto error;
}