Change-Id: I945f116762cfcb836b7e5273b1dd2ce15413a3fd
Signed-off-by: SEO HOYOUNG <hy50.seo@samsung.com>
int ret = 0;\r
size_t len = 0;\r
\r
+ if (!cdev) {\r
+ pr_err("%s: check cdev is NULL\n", __func__);\r
+ return -EINVAL;\r
+ }\r
+\r
DBG(cdev, "mtp_read(%zu)\n", count);\r
\r
/* we will block until we're online */\r
int sendZLP = 0;\r
int ret;\r
\r
+ if (!cdev) {\r
+ pr_err("%s: check cdev is NULL\n", __func__);\r
+ return -EINVAL;\r
+ }\r
+\r
DBG(cdev, "mtp_write(%zu)\n", count);\r
\r
spin_lock_irq(&dev->lock);\r