Skip to content

Commit

Permalink
i7core_edac: don't free on success
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Tony Luck authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent ac1ecec commit d4d1ef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,8 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev,
}

fail:
edac_mc_free(mci);
if (rc < 0)
edac_mc_free(mci);
return rc;
}

Expand Down

0 comments on commit d4d1ef4

Please sign in to comment.