[dpdk-dev] [PATCH] igb_uio: cast private data to correct struct type
Ananyev, Konstantin
konstantin.ananyev at intel.com
Fri Mar 4 14:17:41 CET 2016
> Subject: [dpdk-dev] [PATCH] igb_uio: cast private data to correct struct type
>
> Fixes: af75078fece3 ("first public release")
>
> This was working fine because addresses of two structs are same:
>
> struct A {
> struct B b;
> } a;
>
> As above sample "a" and "b" has same address.
>
> Now casting private data back to the correct struct type, to the one
> stored.
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> ---
Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
> --
> 2.5.0
More information about the dev
mailing list