OSDN Git Service

Staging: android: ion: Make a read-only structure
authorMihaela Muraru <mihaela.muraru21@gmail.com>
Mon, 17 Oct 2016 14:20:18 +0000 (17:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2016 13:33:27 +0000 (15:33 +0200)
commita0f204a4f79d09a102315a67e1ba27de9fea6c8a
tree63498c844d568c9603cc5c0222db35c9111b01c4
parent9fdd532c51ce9c8f08fea329e74ec8021568b97b
Staging: android: ion: Make a read-only structure

This patch add const qualifier at the declaration of the structure.
The structure become a read-only data, this increase the security.

Found with Coccinelle:
@r disable optional_qualifier@
identifier s,i;
@@
* static struct s i ={...};

Signed-off-by: Mihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_dummy_driver.c