powerpc/pseries/hvcserver: don't memset pi_buff if it is null
authorColin Ian King <colin.king@canonical.com>
Thu, 8 Oct 2015 19:00:58 +0000 (20:00 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Oct 2015 21:03:03 +0000 (08:03 +1100)
commitc13e1c05b22b504bf0d72fc762a02be37df2d1b0
tree796f88a14c65ab3de13d3044a1d02bd419c12100
parentf78f7ed72632a0794161f290b89e2cd752f55202
powerpc/pseries/hvcserver: don't memset pi_buff if it is null

pi_buff is being memset before it is sanity checked. Move the
memset after the null pi_buff sanity check to avoid an oops.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/hvcserver.c