On Fri, Sep 18, 2026 at 6:51 PM Bruce Richardson
<[email protected]> wrote:
>
> The argument parsing in ifcvf was storing only 2 bytes to a 4-byte
> integer value, leaving the int possibly with garbage in the top two
> bytes. However, despite being an int, the value was actually used as a
> boolean both times something was passed. Therefore, fix the bug by using
> bool values and change the arg parsing function to match that.
>
> Bugzilla ID: 2040
> Fixes: 40ef35f4a504 ("net/ifc: detect if VDPA mode is specified")
> Cc: [email protected]
>
> Signed-off-by: Bruce Richardson <[email protected]>
> ---
>  drivers/vdpa/ifc/ifcvf_vdpa.c | 23 ++++++++++++-----------
>  1 file changed, 12 insertions(+), 11 deletions(-)
>

Reviewed-by: Maxime Coquelin <[email protected]>

Thanks,
Maxime

Reply via email to