Skip to contentSkip to conversation

question about drivers/gpu/drm/drm_ioc32.c

DISCUSSION Julia Lawall 3 participants 4 messages Jan 28, 2012 – Jan 30, 2012

lore
Share & tools
lore
#0 lore raw

In the function compat_drm_getclient, I have the impression that the structure c32 is copied to user level with the field idx uninitialized?

julia

#1 lore raw
Quoted 2 lines · Julia Lawall

In the function compat_drm_getclient, I have the impression that the structure c32 is copied to user level with the field idx uninitialized?

Looks like it alright,

care to send a patch?

Dave.

#2 lore raw
Quoted 7 lines · Dave Airlie
Quoted 2 lines · Julia Lawall

In the function compat_drm_getclient, I have the impression that the structure c32 is copied to user level with the field idx uninitialized?

Looks like it alright,

care to send a patch?

What should it be initialized to? The idx value that was got and put earlier?

thanks,
julia

#3 lore raw
Quoted 11 lines · Julia Lawall
Quoted 9 lines · Dave Airlie
Quoted 3 lines · Julia Lawall

In the function compat_drm_getclient, I have the impression that the structure c32 is copied to user level with the field idx uninitialized?

Looks like it alright,

Quoted 9 lines
Quoted 1 line

care to send a patch?

What should it be initialized to?  The idx value that was got and put earlier?

thanks,
julia

There was again a variable in drm_client32_t struct, idx which was uninitialised.
c32.idx = idx is ok?

Thanks,
Dev.

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/