svn commit: r229922 - stable/9/sys/dev/if_ndis

Dimitry Andric dim at FreeBSD.org
Tue Jan 10 07:38:47 UTC 2012


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));
 


More information about the svn-src-stable-9 mailing list