summaryrefslogtreecommitdiff
path: root/include/linux/device-id/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2026-07-09 21:33:16 +0200
committerMikulas Patocka <mpatocka@redhat.com>2026-07-10 14:41:17 +0200
commit72e9ec2fe32b00994f41719cf77423fca67d48b2 (patch)
tree44c9f7fde47977b02b75a319aed362276aa962b2 /include/linux/device-id/git@git.tavy.me:linux-stable.git
parent76c6f845dc0c614304a6e6ee619b552f97cf24b3 (diff)
dm-verity: avoid double increment of &use_bh_wq_enabled
verity_parse_opt_args is called twice, first with the only_modifier_opts, first with only_modifier_opts == true and then with only_modifier_opts == false. Thus, the static branch &use_bh_wq_enabled was incremented twice and the destructor verity_dtr would only decrement it once. Fix tihs bug by only incrementing it on the first call, on the second call, when v->use_bh_wq is true, do nothing. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Assisted-by: Claude:claude-opus-4-6 Cc: stable@vger.kernel.org Fixes: df326e7a0699 ("dm verity: allow optional args to alter primary args handling")
Diffstat (limited to 'include/linux/device-id/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions