Re: [PATCH][drm-next] drm compat: ensure mode in drm_agp_info is being copied

From: Al Viro
Date: Tue Jul 04 2017 - 13:37:12 EST


On Tue, Jul 04, 2017 at 05:48:21PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> A recent compat change removed the copying of i32.mode from info.mode.
> Add it back in to fix this removal as we currently are leaking information
> from the stack.
>
> Detected by CoverityScan, CID#1449374 ("Unitialized scalar variable")

Folded and pushed out.