Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165344051
D57728.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
539 B
Referenced Files
None
Subscribers
None
D57728.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D57728: firewire: NULL check on malloc in fw_busreset()
Attached
Detach File
Event Timeline
Log In to Comment