scsi: ufs: Use kmemdup in ufshcd_read_string_desc()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 31 Aug 2019 12:44:24 +0000 (12:44 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 7 Sep 2019 20:39:30 +0000 (16:39 -0400)
commit5f57704dbcfe8ed718fc7cef0b1699c3aad7739c
tree109a63ae0769ee089348c2ae81df84e94c8c9829
parent3e303a42a3a8710a64a19fffff5af218403bc8a8
scsi: ufs: Use kmemdup in ufshcd_read_string_desc()

Use kmemdup rather than duplicating its implementation

Link: https://lore.kernel.org/r/20190831124424.18642-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c