spi: loopback-test: Fix kfree() NULL pointer error.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 20 Jun 2017 09:30:53 +0000 (15:00 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jun 2017 19:16:41 +0000 (20:16 +0100)
commit704c3098e4c55a409eaf5ec89cee1bccc8d44f4c
treebc3eaa8bed4cff6a5b40eff96f2ba1d691875711
parent478de2ba0d2dafcd460b17f032139e2b6b4eb1ac
spi: loopback-test: Fix kfree() NULL pointer error.

Here, rx/tx allocation can fail. So avoid kvfree call
with NULL pointer.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-loopback-test.c