Re: [PATCH] sky2: detect and prevent kernel panic from a possiblefaulty hardware
From: Oliver Neukum
Date: Wed Jul 31 2013 - 04:18:45 EST
On Tue, 2013-07-30 at 16:19 -0700, David Miller wrote:
> From: Samuel Williams <sam8641@xxxxxxxxx>
> Date: Sat, 27 Jul 2013 15:35:54 -0500
>
> > A possible faulty hardware might interrupt with a status of 0xffffffff which
> > may kernel panic if sky2 driver tries to handle it. Detecting this problem
> > may avoid kernel panic.
> >
> > Signed-off-by: Samuel Williams <sam8641@xxxxxxxxx>
>
> Sure, but then the device is basically just going to stop.
>
> I think this change needs to be more comprehensive, for example it
> needs to fully reset the device and try to get it operational again.
But sky2 is used in some hotremovable cards. You can hit the window
for this race. It is unlikely but still this simple check fixes a bug.
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/