diff options
| author | Abdelkader Boudih <freebsd@seuros.com> | 2026-06-22 00:30:53 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2026-06-22 00:31:12 +0000 |
| commit | 51f4e90ce7ef3b8d036a9d34ab464f4152ca4bab (patch) | |
| tree | 90f878c76c44050670580993364e633e8d486e71 /sys/dev | |
| parent | 455c354dd4dbba9b9ec9c68e335ab3aa46dca438 (diff) | |
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/firewire/firewire.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index a54cbf9cdf0b..dfb906ba34c1 100644 --- a/sys/dev/firewire/firewire.c +++ b/sys/dev/firewire/firewire.c @@ -748,6 +748,8 @@ fw_busreset(struct firewire_comm *fc, uint32_t new_status) */ #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 @@ fw_busreset(struct firewire_comm *fc, uint32_t new_status) bcopy(newrom, fc->config_rom, CROMSIZE); } free(newrom, M_FW); +out:; } /* Call once after reboot */ |
