Skip to content

Commit

Permalink
Blazed v2.2.3R2 1300Mhz Overclocked & UnderVolted with BackLightNotifier
Browse files Browse the repository at this point in the history
	Added support to drop bad commands sent to DPRAM to prevent crashing
  • Loading branch information
sirgatez committed Feb 7, 2011
1 parent d9a8f9a commit 0597c18
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions dpram/dpram.c
Original file line number Diff line number Diff line change
Expand Up @@ -1925,10 +1925,19 @@ static void command_handler(u16 cmd)
break;
case 0xff3f:
//Unknown command that randomly appears
//No known damage occurs here
dprintk(KERN_ERR "Unknown command.. %x ...attempting to drop\n", cmd);
non_command_handler(irq_mask);
break;
case 0xf:
//Unknown command that randomly appears
dprintk(KERN_ERR "Unknown command.. %x BAD THINGS HAPPEN...attempting to drop\n", cmd);
non_command_handler(irq_mask);
break;

default:
dprintk(KERN_ERR "Unknown command.. %x\n", cmd);
dprintk(KERN_ERR "Unknown command.. %x ...attempting to drop\n", cmd);
non_command_handler(irq_mask);
break;
}
}

Expand Down

0 comments on commit 0597c18

Please sign in to comment.