drivers: ufs: fix buffer overflow in sprintf
authorAnan Jaser <ananjaser@gmail.com>
Tue, 22 Sep 2020 20:22:57 +0000 (00:22 +0400)
committerAnan Jaser <ananjaser@gmail.com>
Tue, 22 Sep 2020 23:08:56 +0000 (03:08 +0400)
commitfff4b7ccee3a1029f784e8f65fb5f8c424085fb4
tree54c61eda54e060279c6ec2b91f1277baf90e224b
parentfcca0da3d807c343676a21eb83b8c6aac51ab9e9
drivers: ufs: fix buffer overflow in sprintf

drivers/scsi/ufs/ufshcd.c:7588:3: error: 'sprintf' will always overflow; destination buffer has size 16, but format string expands to at le
ast 17 [-Werror,-Wfortify-source]
                sprintf(buf, "U%dH%dL%dX%dQ%dR%dW%dF%d",
                ^

Change-Id: Ic03043dc5df59faf7f19a03deb2fb2d558910db0
drivers/scsi/ufs/ufshcd.c