On 28/01/21 09:36, Vitaly Kuznetsov wrote:
This is embarrassing but I have a (possible) excuse: copy_to_user's argument is 'void *' so no warning was produced. Surprisingly, no test caught the breakage. Thanks for debugging and fixing!
So who writes the test: - the author of the buggy patch - the maintainer who failed to spot it - the poor sod who fixed the issue ? (Just kidding, it will of course be either me or a fourth person :)). Paolo