Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/bp/bp

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
  amd64_edac: fix CECCs reporting
  amd64_edac: fix a wrong goto clause in amd64_edac.c
  • Loading branch information
Linus Torvalds committed Nov 5, 2009
2 parents d39b7dd + 17adea0 commit bd90175
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/edac/amd64_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2254,7 +2254,7 @@ static inline void __amd64_decode_bus_error(struct mem_ctl_info *mci,
{
u32 ec = ERROR_CODE(info->nbsl);
u32 xec = EXT_ERROR_CODE(info->nbsl);
int ecc_type = info->nbsh & (0x3 << 13);
int ecc_type = (info->nbsh >> 13) & 0x3;

/* Bail early out if this was an 'observed' error */
if (PP(ec) == K8_NBSL_PP_OBS)
Expand Down Expand Up @@ -3163,7 +3163,7 @@ static int __init amd64_edac_init(void)
opstate_init();

if (cache_k8_northbridges() < 0)
goto err_exit;
return err;

err = pci_register_driver(&amd64_pci_driver);
if (err)
Expand All @@ -3189,8 +3189,6 @@ static int __init amd64_edac_init(void)

err_2nd_stage:
debugf0("2nd stage failed\n");

err_exit:
pci_unregister_driver(&amd64_pci_driver);

return err;
Expand Down

0 comments on commit bd90175

Please sign in to comment.