From: walter harms <wharms@bfs.de>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] linux-2.6.15.4/drivers/i2c/i2c-core.c.bak: EPERM -> EINVAL
Date: Sat, 25 Feb 2006 12:30:16 +0000 [thread overview]
Message-ID: <44004DD8.2040606@bfs.de> (raw)
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
next reply other threads:[~2006-02-25 12:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-25 12:30 walter harms [this message]
2006-02-25 12:41 ` [KJ] linux-2.6.15.4/drivers/i2c/i2c-core.c.bak: EPERM -> EINVAL Tim Cooijmans
2006-02-25 13:06 ` walter harms
2006-02-25 13:50 ` Tim Cooijmans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44004DD8.2040606@bfs.de \
--to=wharms@bfs.de \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.