diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2013-12-05 23:33:29 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2013-12-11 01:13:20 +0100 |
commit | 4cb57ab4a2e61978f3a9b7d4f53988f30d61c27f (patch) | |
tree | f9060e86cc23801b02bfa98db5bf0f59206b2b93 /drivers/md/dm-stats.c | |
parent | dm cache: actually resize cache (diff) | |
download | linux-4cb57ab4a2e61978f3a9b7d4f53988f30d61c27f.tar.xz linux-4cb57ab4a2e61978f3a9b7d4f53988f30d61c27f.zip |
dm bufio: initialize read-only module parameters
Some module parameters in dm-bufio are read-only. These parameters
inform the user about memory consumption. They are not supposed to be
changed by the user.
However, despite being read-only, these parameters can be set on
modprobe or insmod command line, for example:
modprobe dm-bufio current_allocated_bytes=12345
The kernel doesn't expect that these variables can be non-zero at module
initialization and if the user sets them, it results in BUG.
This patch initializes the variables in the module init routine, so that
user-supplied values are ignored.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # 3.2+
Diffstat (limited to 'drivers/md/dm-stats.c')
0 files changed, 0 insertions, 0 deletions