CID-3821: don't leak `fh' and close the firmware properly
ok christos@
This commit is contained in:
parent
2fc133de08
commit
f8b0309827
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bt3c.c,v 1.7 2006/12/21 15:55:25 yamt Exp $ */
|
||||
/* $NetBSD: bt3c.c,v 1.8 2006/12/27 18:01:45 alc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2005 Iain D. Hibbert,
|
||||
|
@ -69,7 +69,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: bt3c.c,v 1.7 2006/12/21 15:55:25 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bt3c.c,v 1.8 2006/12/27 18:01:45 alc Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -572,7 +572,8 @@ bt3c_load_firmware(struct bt3c_softc *sc)
|
|||
if (size > 10 * 1024) { /* sanity check */
|
||||
printf("%s: firmware file seems WAY too big!\n",
|
||||
sc->sc_dev.dv_xname);
|
||||
return EFBIG;
|
||||
err = EFBIG;
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue