Page MenuHomeFreeBSD

D57728.diff
No OneTemporary

D57728.diff

diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c
--- a/sys/dev/firewire/firewire.c
+++ b/sys/dev/firewire/firewire.c
@@ -748,6 +748,8 @@
*/
#define FW_MAX_GENERATION 0xF
newrom = malloc(CROMSIZE, M_FW, M_NOWAIT | M_ZERO);
+ if (newrom == NULL)
+ goto out;
src = &fc->crom_src_buf->src;
crom_load(src, newrom, CROMSIZE);
if (bcmp(newrom, fc->config_rom, CROMSIZE) != 0) {
@@ -763,6 +765,7 @@
bcopy(newrom, fc->config_rom, CROMSIZE);
}
free(newrom, M_FW);
+out:;
}
/* Call once after reboot */

File Metadata

Mime Type
text/plain
Expires
Sat, Aug 8, 6:14 PM (20 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34209683
Default Alt Text
D57728.diff (539 B)

Event Timeline