mmc: card: test: Fix out of boundary array access
authorXia Yang <xiay@nvidia.com>
Mon, 15 Aug 2016 21:56:51 +0000 (14:56 -0700)
committerWinnie Hsu <whsu@nvidia.com>
Wed, 26 Oct 2016 22:41:05 +0000 (15:41 -0700)
commit023d6603c588e3e592a2750bf6eff16212bbe9f7
tree4bc1e01deee72379bdb687e943bb517e4071afc8
parentd0d666fcd21dea1424006c34fd158067ced90ce2
mmc: card: test: Fix out of boundary array access

Allocate buffer with 1 extra byte for NULL terminator.

Bug 1791602

Change-Id: I3c3658315c2cd2a1dc7be7d72953998a5275e71e
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/1216897
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
drivers/mmc/card/mmc_test.c