diff options
author | Carlos Chinea <carlos.chinea@nokia.com> | 2012-04-13 16:03:03 +0300 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-04-30 17:58:04 +0530 |
commit | 1eb045bfefd1f655909e7d0f6f1e01ebfd731e2d (patch) | |
tree | f699a3ab2d9f4d3bfe27fe20f62f714f4dad2733 /drivers/hsi | |
parent | 98c618a7eefa829963604ff855c007ae3973daf1 (diff) |
HSI: hsi_char: Remove max_data_size from sysfs
Remove max_data_size sysfs entry. Otherwise is possible
to have a buffer overrun if its value is increased after
the device is open.
Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/hsi')
-rw-r--r-- | drivers/hsi/clients/hsi_char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hsi/clients/hsi_char.c b/drivers/hsi/clients/hsi_char.c index 88a050df2389..3ad91f6447d8 100644 --- a/drivers/hsi/clients/hsi_char.c +++ b/drivers/hsi/clients/hsi_char.c @@ -123,7 +123,7 @@ struct hsc_client_data { static unsigned int hsc_major; /* Maximum buffer size that hsi_char will accept from userspace */ static unsigned int max_data_size = 0x1000; -module_param(max_data_size, uint, S_IRUSR | S_IWUSR); +module_param(max_data_size, uint, 0); MODULE_PARM_DESC(max_data_size, "max read/write data size [4,8..65536] (^2)"); static void hsc_add_tail(struct hsc_channel *channel, struct hsi_msg *msg, |