summaryrefslogtreecommitdiffstats
path: root/backend_mitsu70x.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-02-16 10:49:21 -0500
committerSolomon Peachy <pizza@shaftnet.org>2018-02-16 10:49:21 -0500
commited650abded40f8b01cfb091e45aabbfaf6445e2a (patch)
treeb95d2f955335d7d378955fcb013a3867d9c484e9 /backend_mitsu70x.c
parent481a76757a06080626e6c54d735a7e5fb88b8595 (diff)
downloadselphy_print-ed650abded40f8b01cfb091e45aabbfaf6445e2a.tar.gz
selphy_print-ed650abded40f8b01cfb091e45aabbfaf6445e2a.tar.bz2
selphy_print-ed650abded40f8b01cfb091e45aabbfaf6445e2a.zip
all: use BACKEND_CUPS_RETRY_CURRENT for memory allocation failures.
Diffstat (limited to 'backend_mitsu70x.c')
-rw-r--r--backend_mitsu70x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend_mitsu70x.c b/backend_mitsu70x.c
index 3e70a84..5360911 100644
--- a/backend_mitsu70x.c
+++ b/backend_mitsu70x.c
@@ -985,7 +985,7 @@ repeat:
if (!ctx->databuf) {
ERROR("Memory allocation failure!\n");
- return CUPS_BACKEND_FAILED;
+ return CUPS_BACKEND_RETRY_CURRENT;
}
memcpy(ctx->databuf + ctx->datalen, &mhdr, sizeof(mhdr));
@@ -1014,7 +1014,7 @@ repeat:
spoolbuflen = 0; spoolbuf = malloc(remain);
if (!spoolbuf) {
ERROR("Memory allocation failure!\n");
- return CUPS_BACKEND_FAILED;
+ return CUPS_BACKEND_RETRY_CURRENT;
}
/* Read in the BGR data */
@@ -1034,7 +1034,7 @@ repeat:
uint8_t *buf = malloc(LUT_LEN);
if (!buf) {
ERROR("Memory allocation failure!\n");
- return CUPS_BACKEND_FAILED;
+ return CUPS_BACKEND_RETRY_CURRENT;
}
if (ctx->Get3DColorTable(buf, ctx->lutfname)) {
ERROR("Unable to open LUT file '%s'\n", ctx->lutfname);