public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: Santhosh Pai <santhosh.pai88@yahoo.com>, sudipm.mukherjee@gmail.com
Cc: hsweeten@visionengravers.com, devel@driverdev.osuosl.org,
	gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org
Subject: Re: Subject: [PATCH 1/2] staging : Comedi : comedi_fops : Fixed the return error, code
Date: Mon, 29 Jun 2015 10:28:39 +0100	[thread overview]
Message-ID: <55910FC7.1020506@mev.co.uk> (raw)
In-Reply-To: <55910C98.3070406@mev.co.uk>

On 29/06/15 10:15, Ian Abbott wrote:
> On 27/06/15 06:36, Santhosh Pai wrote:
>>
>>  From 9ea09e194d6ccdd0b229b408df1c86b43b1fdd7d Mon Sep 17 00:00:00 2001
>> From: santhosh pai <santhosh.pai88@yahoo.com>
>> Date: Mon, 22 Jun 2015 23:26:33 +0530
>> Subject: [PATCH 2/2] staging : Comedi : comedi_fops : Fixed the return
>> error
>>   code
>>
>>    try_module_get fails when the reference count of the module is not
>>    allowed to be incremented ,and hence -ENXIO is returned indicating
>>    no device or address.
>>
>> Signed-off-by: santhosh pai <santhosh.pai88@yahoo.com>
>> ---
>>   drivers/staging/comedi/comedi_fops.c |    2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/staging/comedi/comedi_fops.c
>> b/drivers/staging/comedi/comedi_fops.c
>> index d6a37e9..1ab443c 100644
>> --- a/drivers/staging/comedi/comedi_fops.c
>> +++ b/drivers/staging/comedi/comedi_fops.c
>> @@ -2606,7 +2606,7 @@ static int comedi_open(struct inode *inode,
>> struct file *file)
>>       }
>>       if (dev->attached && dev->use_count == 0) {
>>           if (!try_module_get(dev->driver->module)) {
>> -            rc = -EPERM;
>> +            rc = -ENXIO;
>>               goto out;
>>           }
>>           if (dev->open) {
>>
>
> The patch itself is okay, but all the stuff around the patch is a bit
> weird, such as:
>
> 1. all those email headers in the commit message
> 2. useless indentation in the commit message
> 3. subject line in commit message says "PATCH 2/2", but email subject
> line says "PATCH 1/2"
> 4. stray comma in email subject line
> 5. spaces before colon in subject lines

Actually, the patch doesn't apply, because it's on top of your other 
patch that changed -ENOSYS to -EPERM.

>
> This is taking too long, so I'll post a cleaned-up version.
>

I'll combine your two changes to the error return value into a single patch.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@mev.co.uk> )=-
-=(                          Web: http://www.mev.co.uk/  )=-

  reply	other threads:[~2015-06-29  9:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <558E3641.1050405@yahoo.com>
2015-06-29  9:15 ` Subject: [PATCH 1/2] staging : Comedi : comedi_fops : Fixed the return error, code Ian Abbott
2015-06-29  9:28   ` Ian Abbott [this message]
2015-06-29  9:41     ` [PATCH] staging: Comedi: comedi_fops: Fixed the return error code Ian Abbott
2015-06-29  9:43       ` Ian Abbott
2015-06-29  9:44     ` Ian Abbott

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=55910FC7.1020506@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hsweeten@visionengravers.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=santhosh.pai88@yahoo.com \
    --cc=sudipm.mukherjee@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox