From owner-cvs-all Wed May 9 23:55:45 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 421E637B422; Wed, 9 May 2001 23:55:40 -0700 (PDT) (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4A6te735337; Wed, 9 May 2001 23:55:40 -0700 (PDT) (envelope-from imp) Message-Id: <200105100655.f4A6te735337@freefall.freebsd.org> From: Warner Losh Date: Wed, 9 May 2001 23:55:40 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/pccard pccard.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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