From 54a55700f66eaeef827de3ab2dbf802dd32ea697 Mon Sep 17 00:00:00 2001 From: Alex Belkin Date: Fri, 18 May 2018 01:31:46 +0300 Subject: [PATCH] xerox_mfp: blacklist SCX-4500W from jpeg mode Fix issue #315876 reported by Bernard Cafarelli https://alioth.debian.org/tracker/?func=detail&atid=410366&aid=315876&group_id=30186 --- backend/xerox_mfp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/xerox_mfp.c b/backend/xerox_mfp.c index 8b8c8956a..3f3b27985 100644 --- a/backend/xerox_mfp.c +++ b/backend/xerox_mfp.c @@ -206,9 +206,12 @@ static int isSupportedDevice(struct device __sane_unused__ *dev) { #ifdef HAVE_LIBJPEG /* Checking device which supports JPEG Lossy compression for color scanning*/ - if (dev->compressionTypes & (1 << 6)) + if (dev->compressionTypes & (1 << 6)) { + /* blacklist malfunctioning device(s) */ + if (!strncmp(dev->sane.model, "SCX-4500W", 9)) + return 0; return 1; - else + } else return 0; #else return 0;