Re: [RFC] media: atomisp: change copy_from_compatible to iov_iter
From: Joshua Crofts
Date: Wed Apr 08 2026 - 09:50:47 EST
On Wed, 8 Apr 2026 at 15:46, Joshua Crofts <joshua.crofts1@xxxxxxxxx> wrote:
>
> Since the atomisp driver concerns transferring video
> data, it would probably be better to use an iov_iter
> than copy_to_user calls (scatter-gather i/o and better
> pointer safety). Per yesterday's emails, I'm sending an
> an example of a function in atomisp_cmd.c where I've
> implemented iov_iter usage.
>
> Note, this isn't a patch, more of a question whether this
> style of changing the copy_to_user calls is valid (or if
> I'm writing garbage code). I'd rather get your opinion
> than submitting a patch first.
>
Before I forget, this change was compile-tested.
--
Kind regards
CJD