* Question about checking a pointer for validity
@ 2013-03-08 18:11 Larry Finger
0 siblings, 0 replies; only message in thread
From: Larry Finger @ 2013-03-08 18:11 UTC (permalink / raw)
To: LKML
I am chasing what I suspect is a firmware error for the Realtek RTL8723AE
device. The symptom is that the RX buffer is corrupted, and I get a kernel panic
due to a bad pointer in an interrupt routine.
I am currently checking that pointer for NULL, which is catching some of the
situations, but I am still getting panics from non-NULL pointers that do not
point to a valid address.
Is there any way to test a pointer for validity that will not crash the system
if it is bad?
Thanks,
Larry
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-03-08 18:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-08 18:11 Question about checking a pointer for validity Larry Finger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®