diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-07-31 11:39:55 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-07-31 11:39:55 +0000 |
commit | 5fe6e23c61bf1fde7a1a0568b38d32c4e625f0ef (patch) | |
tree | 74ab1bde640908166368985f9598517756df3199 /payloads/libpayload/include | |
parent | 131c0070a3b224e8ec2c817444f1ae4cf2419193 (diff) | |
download | coreboot-5fe6e23c61bf1fde7a1a0568b38d32c4e625f0ef.tar.xz |
Catch various cases in libpayload where malloc() or memalign() return NULL
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4474 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r-- | payloads/libpayload/include/usb/usb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/payloads/libpayload/include/usb/usb.h b/payloads/libpayload/include/usb/usb.h index d06e8077db..9f38b845dd 100644 --- a/payloads/libpayload/include/usb/usb.h +++ b/payloads/libpayload/include/usb/usb.h @@ -226,4 +226,6 @@ gen_bmRequestType (dev_req_dir dir, dev_req_type type, dev_req_recp recp) void usb_detach_device(hci_t *controller, int devno); int usb_attach_device(hci_t *controller, int hubaddress, int port, int lowspeed); + +void usb_fatal(const char *message) __attribute__ ((noreturn)); #endif |