tty: n_gsm: mark unusable ioctl structure fields accordingly
authorDaniel Starke <daniel.starke@siemens.com>
Mon, 6 Feb 2023 11:46:03 +0000 (12:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 12:19:48 +0000 (13:19 +0100)
commit9bd6dcb8ccb1a7d18534a88ff0d11e466a3a98a4
tree1aa0ae9a86e8719b1e3f484aca89ada76334b29d
parentf2d9fbb6f4a7175ce41afe292d46685ef7752a67
tty: n_gsm: mark unusable ioctl structure fields accordingly

gsm_config and gsm_netconfig includes unused fields that have been included
to allow future extension without changing the structure size.
Unfortunately, no checks have been included for these field. The actual
value set by old user space code remains undefined.
This means that future extensions can not use these fields without breaking
old user space code which may set unexpected values.

Mark these fields accordingly to avoid breaking code changes.

Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20230206114606.2133-1-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/gsmmux.h