Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334605
b: refs/heads/master
c: 21c5e50
h: refs/heads/master
i:
  334603: bf0fca2
v: v3
  • Loading branch information
Daniel J Blueman authored and H. Peter Anvin committed Oct 17, 2012
1 parent d73860b commit d7f4888
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1bbbbe779aabe1f0768c2bf8f8c0a5583679b54a
refs/heads/master: 21c5e50e15b1abd797e62f18fd7f90b9cc004cbd
10 changes: 5 additions & 5 deletions trunk/arch/x86/kernel/cpu/mcheck/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,12 +576,10 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank)
int err = 0;

if (shared_bank[bank]) {

nb = node_to_amd_nb(amd_get_nb_id(cpu));
WARN_ON(!nb);

/* threshold descriptor already initialized on this node? */
if (nb->bank4) {
if (nb && nb->bank4) {
/* yes, use it */
b = nb->bank4;
err = kobject_add(b->kobj, &dev->kobj, name);
Expand Down Expand Up @@ -615,8 +613,10 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank)
atomic_set(&b->cpus, 1);

/* nb is already initialized, see above */
WARN_ON(nb->bank4);
nb->bank4 = b;
if (nb) {
WARN_ON(nb->bank4);
nb->bank4 = b;
}
}

err = allocate_threshold_blocks(cpu, bank, 0,
Expand Down

0 comments on commit d7f4888

Please sign in to comment.