1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fix a harmless typo (use of res instead of rle: if rle is NULL, we'd

still get a panic, just not a nice message) and update to new
__FBSDID.

Submitted by: charnier@
This commit is contained in:
Warner Losh 2003-11-12 05:21:06 +00:00
parent 543729cf93
commit a66f2afd1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122534

View File

@ -25,8 +25,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
*/
/*
@ -74,6 +72,9 @@
* * David Cross: Author of the initial ugly hack for a specific cardbus card
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
@ -337,7 +338,7 @@ cbb_insert_res(struct cbb_softc *sc, struct resource *res, int type,
* it later.
*/
rle = malloc(sizeof(struct cbb_reslist), M_DEVBUF, M_NOWAIT);
if (!res)
if (rle == NULL)
panic("cbb_cardbus_alloc_resource: can't record entry!");
rle->res = res;
rle->type = type;