Date: Thu, 4 Jun 2009 17:55:43 +0000 (UTC) From: Christian Brueffer <brueffer@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r193444 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb dev/iir Message-ID: <200906041755.n54HthMl099252@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brueffer Date: Thu Jun 4 17:55:42 2009 New Revision: 193444 URL: http://svn.freebsd.org/changeset/base/193444 Log: MFC: r192097 Compare the correct variable against NULL. Reviewed by: scottl Found with: Coverity Prevent(tm) CID: 821 Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) stable/7/sys/dev/iir/iir_pci.c Modified: stable/7/sys/dev/iir/iir_pci.c ============================================================================== --- stable/7/sys/dev/iir/iir_pci.c Thu Jun 4 17:12:50 2009 (r193443) +++ stable/7/sys/dev/iir/iir_pci.c Thu Jun 4 17:55:42 2009 (r193444) @@ -202,7 +202,7 @@ iir_pci_attach(device_t dev) rid = 0; irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE | RF_SHAREABLE); - if (io == NULL) { + if (irq == NULL) { device_printf(dev, "can't find IRQ value\n"); error = ENOMEM; goto err;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906041755.n54HthMl099252>