Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 07:38:46 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229922 - stable/9/sys/dev/if_ndis
Message-ID:  <201201100738.q0A7ck1R095962@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Jan 10 07:38:46 2012
New Revision: 229922
URL: http://svn.freebsd.org/changeset/base/229922

Log:
  MFC r229401:
  
  In sys/dev/if_ndis/if_ndis_pccard.c, fix a bug where a garbage rid was
  passed to resource_list_add().  The rid that was just returned by
  bus_alloc_resource_any() should have been used instead.
  
  Reviewed by:	jhb

Modified:
  stable/9/sys/dev/if_ndis/if_ndis_pccard.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/dev/if_ndis/if_ndis_pccard.c
==============================================================================
--- stable/9/sys/dev/if_ndis/if_ndis_pccard.c	Tue Jan 10 07:21:11 2012	(r229921)
+++ stable/9/sys/dev/if_ndis/if_ndis_pccard.c	Tue Jan 10 07:38:46 2012	(r229922)
@@ -207,7 +207,7 @@ ndis_attach_pccard(dev)
 		goto fail;
 	}
 	sc->ndis_rescnt++;
-	resource_list_add(&sc->ndis_rl, SYS_RES_IOPORT, rid,
+	resource_list_add(&sc->ndis_rl, SYS_RES_IOPORT, sc->ndis_io_rid,
 	    rman_get_start(sc->ndis_res_io), rman_get_end(sc->ndis_res_io),
 	    rman_get_size(sc->ndis_res_io));
 



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