Files
linux/drivers
Mikulas Patocka d468a287d0 dm bufio: initialize read-only module parameters
commit 4cb57ab4a2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-20 07:45:10 -08:00
..
2013-12-08 07:29:25 -08:00
2013-12-04 10:56:25 -08:00
2013-12-04 10:57:19 -08:00
2013-12-20 07:45:10 -08:00
2013-12-11 22:36:28 -08:00
2013-11-04 04:31:06 -08:00
2013-06-05 08:54:16 -06:00