[Skiboot] [trivial PATCH] FSP/CONSOLE: Do not free fsp_msg in error path

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Thu Jun 1 14:34:58 AEST 2017


.. as we reuse same msg to send next output message.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 hw/fsp/fsp-console.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/fsp/fsp-console.c b/hw/fsp/fsp-console.c
index 69c603a..8eaf7b8 100644
--- a/hw/fsp/fsp-console.c
+++ b/hw/fsp/fsp-console.c
@@ -145,7 +145,6 @@ static void fsp_pokemsg_reclaim(struct fsp_msg *msg)
 		if (fs->out_poke) {
 			if (fsp_queue_msg(fs->poke_msg, fsp_pokemsg_reclaim)) {
 				prerror("FSPCON: failed to queue poke msg\n");
-				fsp_freemsg(msg);
 			} else {
 				fs->out_poke = false;
 			}
-- 
2.9.3



More information about the Skiboot mailing list