Marc Kleine-Budde wrote:
 > Hi Philippe!
 > 
 > I'm using linux-2.6.7 with Adeos 2.6r6c4/x86, gcc version 3.3.4 (Debian
 > 1:3.3.4-3) and the latest fusion CVS co.
 > 
 > On one console I was running 'watch -n 1 cat /proc/rtai/system' and on
 > another unloading the core modules (rtai_nucleus and rtai_hal). I got a nice
 > Linux-Kerneloops, system kept running. Further 'cat /proc/rtai/system'
 > got killed due to  segfaults.

In order not to have too much performance impact, the xnpod_read_proc
function does not hold the big lock for too long sections. So, it may
happen that the nkpod pointer become NULL between the time it is read
and the time it is used.

If you want to avoid that, I suppose you should check that nkpod is not
NULL in several other places.

Regards.

-- 


                                            Gilles Chanteperdrix.

Reply via email to