ipmi: Fix the opal_ipmi_recv() call to handle the error path
ipmi: Fix the opal_ipmi_recv() call to handle the error path

In the error path of the OPAL function to receive the ipmi message,
the function returns the error code without deleting the message
containing response. Though the kernel doesn't claim this message
later and continue with the subsequent ipmi commands. This leads to
a scenario when there is a mismatch between the ipmi command and its
response for all the subsequent ipmi commands.

Signed-off-by: Neelesh Gupta <0c847490c0192d1430997c36c35afbb478c33ca8@linux.vnet.ibm.com>
Cc: Alistair Popple <e9adbcf81c8a36ccc628e09bc92d0e25e1c8e501@popple.id.au>
Acked-by: Alistair Popple <e9adbcf81c8a36ccc628e09bc92d0e25e1c8e501@popple.id.au>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

shenki/skiboot,legoater/skiboot,qemu/skiboot,stewart-ibm/skiboot,open-power/skiboot,shenki/skiboot,qemu/skiboot,mikey/skiboot,open-power/skiboot,apopple/skiboot,mikey/skiboot,apopple/skiboot,legoater/skiboot,open-power/skiboot,apopple/skiboot,qemu/skiboot,legoater/skiboot,qemu/skiboot,csmart/skiboot,shenki/skiboot,qemu/skiboot,stewart-ibm/skiboot,stewart-ibm/skiboot,open-power/skiboot,csmart/skiboot,shenki/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot,legoater/skiboot,mikey/skiboot,csmart/skiboot