lkml.org 
[lkml]   [2013]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectQuestion about checking a pointer for validity
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


\
 
 \ /
  Last update: 2013-03-08 20:03    [W:0.134 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site