summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2013-12-05 17:33:29 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-20 07:34:20 -0800
commitaa42ac11510cd2584a04cdd5dacb3f4bf8e82af0 (patch)
treeddd9dff2a378320b853ae4ef81008772702d42d1 /net/lapb/lapb_in.c
parent57ca30028c51d6aaa380b4063f13fbf61e8e5d76 (diff)
dm bufio: initialize read-only module parameters
commit 4cb57ab4a2e61978f3a9b7d4f53988f30d61c27f 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>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions