Date: Wed, 9 May 2001 23:55:40 -0700 (PDT) From: Warner Losh <imp@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/pccard pccard.c Message-ID: <200105100655.f4A6te735337@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2001/05/09 23:55:40 PDT Modified files: sys/dev/pccard pccard.c Log: Fix the panics for real this time. When something can't be allocated, we need to delete the info from the list as well as zero out the res pointer we saved in the code. Also made a few style(9) changes while I was at it. Don't use if (ptr) or if (!ptr), but compare against NULL. Compare against NULL rather than 0. Don't have useless blocks. There are likely other problems as well, but at least the wi based wireless card with memory listed in its cis doesn't panic the system when the card is inserted. Revision Changes Path 1.41 +28 -25 src/sys/dev/pccard/pccard.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105100655.f4A6te735337>