diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2013-12-05 22:34:19 (GMT) |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2013-12-11 00:13:21 (GMT) |
commit | 76f5bee5c3b45c617f91243e85547fc8f67bc678 (patch) | |
tree | ac768fd2a42dad32d090694345cb0bf4277789c2 /drivers/md/persistent-data | |
parent | 4cb57ab4a2e61978f3a9b7d4f53988f30d61c27f (diff) | |
download | linux-76f5bee5c3b45c617f91243e85547fc8f67bc678.tar.xz |
dm stats: initialize read-only module parameter
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>
Cc: stable@vger.kernel.org # 3.12+
Diffstat (limited to 'drivers/md/persistent-data')
0 files changed, 0 insertions, 0 deletions