All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] linux-2.6.15.4/drivers/i2c/i2c-core.c.bak:  EPERM -> EINVAL
@ 2006-02-25 12:30 walter harms
  2006-02-25 12:41 ` Tim Cooijmans
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: walter harms @ 2006-02-25 12:30 UTC (permalink / raw)
  To: kernel-janitors

Hi list,
it was noticed that some driver return EPERM instead of EINVAL.
EPERM indicates no enought privilege to access a function.
This will fixit an return (i hope) a 'better' error msg.

re,
  walter


Signed-off-by: walter harms <wharms@bfs.de>

--- linux-2.6.15.4/drivers/i2c/i2c-core.c.bak	2006-02-25 
13:25:48.000000000 +0100
+++ linux-2.6.15.4/drivers/i2c/i2c-core.c	2006-02-25 13:24:44.000000000 
+0100
@@ -522,7 +522,7 @@
  		else {
  			pr_debug("i2c-core: %s used one too many times\n",
  				__FUNCTION__);
-			return -EPERM;
+			return -EINVAL;
  		}
  	}
  	
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-25 13:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-25 12:30 [KJ] linux-2.6.15.4/drivers/i2c/i2c-core.c.bak: EPERM -> EINVAL walter harms
2006-02-25 12:41 ` Tim Cooijmans
2006-02-25 13:06 ` walter harms
2006-02-25 13:50 ` Tim Cooijmans

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.