summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtdcore.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2013-12-05 17:34:19 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-20 07:49:04 -0800
commit7f4ed02192c0bdf3559999e92f51a2ce588fa0df (patch)
treed58433feaf54efc79f6f96dbc6f58c26772011f6 /drivers/mtd/mtdcore.c
parentaff61a9e1151f0d09bc3aaec6613813ddc3eeef2 (diff)
dm stats: initialize read-only module parameter
commit 76f5bee5c3b45c617f91243e85547fc8f67bc678 upstream. The module parameter stats_current_allocated_bytes in dm-mod is read-only. This parameter informs the user about memory consumption. It is not supposed to be changed by the user. However, despite being read-only, this parameter can be set on modprobe or insmod command line: modprobe dm-mod stats_current_allocated_bytes=12345 The kernel doesn't expect that this variable can be non-zero at module initialization and if the user sets it, it results in warning. This patch initializes the variable in the module init routine, so that user-supplied value is ignored. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mtd/mtdcore.c')
0 files changed, 0 insertions, 0 deletions