From 0cab8a383f41f534519c7589101d5bcdac4416be Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Mon, 29 Oct 2007 13:13:10 +0100 Subject: [PATCH] Allow direct I/O parametrized fastbufs only with CONFIG_UCW_THREADS enabled, otherwise die with an error. --- lib/fb-param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fb-param.c b/lib/fb-param.c index 39584769..854ba78a 100644 --- a/lib/fb-param.c +++ b/lib/fb-param.c @@ -27,7 +27,7 @@ fbpar_cf_commit(struct fb_params *p UNUSED) { #ifndef CONFIG_UCW_THREADS if (p->type == FB_DIRECT) - p->type = FB_STD; + return "Direct I/O is supported only with CONFIG_UCW_THREADS"; #endif return NULL; } -- 2.39.2