[PATCH 09/10] staging/android: add flags member to sync ioctl structs

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon Feb 1 09:39:49 CET 2016


Op 29-01-16 om 22:20 schreef Gustavo Padovan:
> From: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
>
> Play safe and add flags member to all structs. So we don't need to
> break API or create new IOCTL in the future if new features that requires
> flags arises.
>
This only helps if you reject flags != 0 in the ioctl, else when you extend the abi userspace might initialize it with garbage.

~Maarten


More information about the dri-devel mailing list