[PATCH] vdpa/ifc: fix argument parsing
Maxime Coquelin
maxime.coquelin at redhat.com
Mon Oct 19 17:46:00 CEST 2026
On Fri, Sep 18, 2026 at 6:51 PM Bruce Richardson
<bruce.richardson at intel.com> 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: stable at dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
> drivers/vdpa/ifc/ifcvf_vdpa.c | 23 ++++++++++++-----------
> 1 file changed, 12 insertions(+), 11 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list