ion_phys_addr_t phy_addr;\r
size_t len;\r
\r
- if(!req->src.yrgb_addr) {\r
+ if(req->src.yrgb_addr) {\r
if (copy_from_user(&usr_fd, &req->src.yrgb_addr, sizeof(usr_fd)))\r
return -EFAULT;\r
hdl = ion_import_dma_buf(drvdata->ion_client, usr_fd);\r
req->src.uv_addr = req->src.yrgb_addr + (req->src.vir_w * req->src.vir_h);\r
}\r
\r
- if(!req->dst.yrgb_addr) {\r
+ if(req->dst.yrgb_addr) {\r
if (copy_from_user(&usr_fd, &req->dst.yrgb_addr, sizeof(usr_fd)))\r
return -EFAULT;\r
hdl = ion_import_dma_buf(drvdata->ion_client, usr_fd);\r