mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Jesper Juhl <jesper.juhl@gmail.com>
Cc: linux-kernel@vger.kernel.org, axboe@suse.de, jesper.juhl@gmail.com
Subject: Re: [PATCH] ide-tape: attempt to handle copy_*_user() failures   [take two]
Date: Mon, 23 Jan 2006 00:04:01 -0800	[thread overview]
Message-ID: <20060123000401.144e2ca2.akpm@osdl.org> (raw)
In-Reply-To: <200601222251.56185.jesper.juhl@gmail.com>

Jesper Juhl <jesper.juhl@gmail.com> wrote:
>
> Second attempt at this patch.
> 
> (
>  noticed a small flaw in my first patch, this should be better.
>  also noticed that Gadi Oxman seems unable to recieve mail at the address
>  listed in MAINTAINERS, so put a few other (hopefully relevant) people on
>  Cc instead
> )
> 
> 
> Attempt to handle copy_*_user() failures in
> drivers/ide/ide-tape.c::idetape_copy_stage_*_user
> 
> drivers/ide/ide-tape.c:2663: warning: ignoring return value of \x03opy_from_user', declared with attribute warn_unused_result
> drivers/ide/ide-tape.c:2690: warning: ignoring return value of \x03opy_to_user', declared with attribute warn_unused_result
> 
> Due to lack of hardware I'm unfortunately not able to test this patch
> beyond making sure it compiles.
> 

Too scary for me.

> @@ -2669,26 +2671,30 @@ static void idetape_copy_stage_from_user
>  			if (bh)
>  				atomic_set(&bh->b_count, 0);
>  		}
> +		if (not_copied)
> +			return not_copied;
>  	}
>  	tape->bh = bh;
> +	return 0;
>  }

What are the effects of not updating tape->bh?


  reply	other threads:[~2006-01-23  8:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-22 21:51 Jesper Juhl
2006-01-23  8:04 ` Andrew Morton [this message]
2006-01-28 18:52   ` Jesper Juhl

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=20060123000401.144e2ca2.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=axboe@suse.de \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome