Re: [PATCH] goldfish: Return proper error code
From: One Thousand Gnomes
Date: Wed Feb 17 2016 - 13:42:33 EST
On Wed, 17 Feb 2016 22:53:29 +0530
Amitoj Kaur Chawla <amitoj1606@xxxxxxxxx> wrote:
> This change has been made with the goal that kernel functions should
> return something more descriptive than -1 on failure.
>
> Change the return value on valid_batchbuffer_addr() failure from -1
> to -EINVAL.
>
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@xxxxxxxxx>
NAK. It's not user visible, it's a piece of code that has a pile of other
more important fixes needed first, and it's also as far as possible kept
aligned with the Android upstream.
If it were some random otherwise unchanging bit of code then it might
just about make sense but in this case no - especially when you only
change one of the two returns of -1 !
Alan