Re: [PATCH] xen/pvcalls: fix null pointer dereference on map->sock

From: Juergen Gross
Date: Thu Feb 22 2018 - 14:20:05 EST


On 22/02/18 18:22, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Currently if map is null then a potential null pointer deference
> occurs when calling sock_release on map->sock. I believe the
> actual intention was to call sock_release on sock instead. Fix
> this.
>
> Fixes: 5db4d286a8ef ("xen/pvcalls: implement connect command")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Hmm, yes, kind of obvious. :-)

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen