فهرست منبع

mm-drivers: hw-fence: fix static analysis issue

Fix static analysis issue where uninitialized variable is being accessed.

Change-Id: Iab6210fb4c67f35c7f1bada592800c10f0ad76bc
Signed-off-by: Manoj Kumar AVM <[email protected]>
Manoj Kumar AVM 2 سال پیش
والد
کامیت
f168780f74
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      hw_fence/src/hw_fence_ioctl.c

+ 1 - 1
hw_fence/src/hw_fence_ioctl.c

@@ -655,7 +655,7 @@ static long hw_sync_ioctl_reset_client(struct hw_sync_obj *obj, unsigned long ar
 	if (!_is_valid_client(obj)) {
 		return -EINVAL;
 	} else if (IS_ERR_OR_NULL(obj->client_handle)) {
-		HWFNC_ERR("client:%d handle doesn't exists\n", data.client_id);
+		HWFNC_ERR("client:%d handle doesn't exists\n", obj->client_id);
 		return -EINVAL;
 	}