Skip to content

Commit

Permalink
libflash/ipmi-hiomap: Fix leak of msg in callback
Browse files Browse the repository at this point in the history
[ Upstream commit 1b3a5df ]

Cc: stable
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
  • Loading branch information
amboar authored and Vasant Hegde committed Mar 4, 2019
1 parent 272443f commit 7bb5ead
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libflash/ipmi-hiomap.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ static void ipmi_hiomap_cmd_cb(struct ipmi_msg *msg)

res->cc = msg->cc;
if (msg->cc != IPMI_CC_NO_ERROR) {
ipmi_free_msg(msg);
return;
}

Expand Down

0 comments on commit 7bb5ead

Please sign in to comment.