From 891533a89ba8c3f54c4c900d974144513731e2a9 Mon Sep 17 00:00:00 2001 From: hailfinger Date: Fri, 8 Jun 2012 15:27:47 +0000 Subject: Bus Pirate buffer management revamp The buffer management of the Bus Pirate driver has been revamped to use grow-only buffers with a reasonable initial default size so realloc() will not have to be called in normal operation. A side effect is the ability to switch to a static buffer without major hassle. Handle OOM gracefully. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Patrick Georgi git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1541 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- flash.h | 1 + 1 file changed, 1 insertion(+) (limited to 'flash.h') diff --git a/flash.h b/flash.h index cae1ea9..60d52e1 100644 --- a/flash.h +++ b/flash.h @@ -36,6 +36,7 @@ #define ERROR_PTR ((void*)-1) /* Error codes */ +#define ERROR_OOM -100 #define TIMEOUT_ERROR -101 typedef unsigned long chipaddr; -- cgit v1.2.1