Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Oct 2009 12:40:02 GMT
From:      Alban Hertroys <dalroi@solfertje.student.utwente.nl>
To:        freebsd-usb@FreeBSD.org
Subject:   Re: usb/139990: Kernel frequently panics after printing
Message-ID:  <200910281240.n9SCe2Ls093655@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR usb/139990; it has been noted by GNATS.

From: Alban Hertroys <dalroi@solfertje.student.utwente.nl>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: usb/139990: Kernel frequently panics after printing
Date: Wed, 28 Oct 2009 13:14:02 +0100

 An apparent fix was found with:
 >> Could you please try to change the callout_stop() call here :
 >>
 >> http://fxr.watson.org/fxr/source/dev/usb/ulpt.c?v=FREEBSD7#L605
 >>
 >> By a callout_drain(), and see what happens ?
 >> Something like :
 >>
 >>     if (sc->sc_has_callout) {
 >> -                 callout_stop(&sc->sc_read_callout);
 >> +		  callout_drain(&sc->sc_read_callout);
 >> 	              sc->sc_has_callout = 0;
 >>     }
 >>
 >> If this change does not help, I don't know...
 >
 > I printed several documents today without a kernel panic, so the
 > change appears to have worked. Thanks!
 
 
 Alban Hertroys
 
 --
 Screwing up is the best way to attach something to the ceiling.
 
 
 !DSPAM:984,4ae8358b11079570670080!
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910281240.n9SCe2Ls093655>