bugs in sys/dev/pccard/pccbb/pccbb.c
Sepherosa Ziehau
sepherosa at gmail.com
Thu Aug 25 05:41:14 PDT 2005
wrong parameter passed to BUS_RELEASE_RESOURCE()
caught by gcc
Cheers,
--
Live Free or Die
Index: pccbb.c
===================================================================
RCS file: /opt/df_cvs/src/sys/dev/pccard/pccbb/pccbb.c,v
retrieving revision 1.9
diff -u -u -p -r1.9 pccbb.c
--- pccbb.c 11 Aug 2005 03:20:36 -0000 1.9
+++ pccbb.c 25 Aug 2005 12:38:17 -0000
@@ -1515,7 +1515,7 @@ cbb_cardbus_alloc_resource(device_t brde
}
if (cbb_insert_res(sc, res, type, *rid)) {
BUS_RELEASE_RESOURCE(device_get_parent(brdev), child, type,
- rid, res);
+ *rid, res);
return (NULL);
}
if (flags & RF_ACTIVE)
@@ -1697,7 +1697,7 @@ cbb_pcic_alloc_resource(device_t brdev,
return (NULL);
if (cbb_insert_res(sc, res, type, *rid)) {
BUS_RELEASE_RESOURCE(device_get_parent(brdev), child, type,
- rid, res);
+ *rid, res);
return (NULL);
}
if (flags & RF_ACTIVE) {
More information about the Submit
mailing list