]> git.baikalelectronics.ru Git - kernel.git/commit
n_gsm: add missing __user annotations
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 08:49:44 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 11:46:47 +0000 (12:46 +0100)
commit2c2696b2489267e7e591fce07e30454343b169ed
tree06b069e96ff8ea08e42ed38a9afa6806cec35bbe
parent2738586fb112774c8f80f96af5652ec86a24eeb3
n_gsm: add missing __user annotations

sparse warns about incorrect types:
n_gsm.c:2638:35: warning: incorrect type in argument 1 (different address spaces)
n_gsm.c:2638:35:    expected void [noderef] <asn:1> *to
n_gsm.c:2638:35:    got void *

The ioctl handler casts its `arg' to (void *) without __user. Add that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219084949.28074-5-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c