]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
UBUNTU: SAUCE: block: partition: initialize percpuref before sending out KOBJ_ADD
authorMing Lei <ming.lei@canonical.com>
Tue, 29 Mar 2016 03:47:48 +0000 (11:47 +0800)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:29:29 +0000 (10:29 +0100)
commit88248afa5de1a8add3da013bbc414416f6b3f1e4
treecdbe9e97234d860414a08b9d07bac56773a12349
parentf7d70a0c83bfd752ee9483661e8dd2e6091421bf
UBUNTU: SAUCE: block: partition: initialize percpuref before sending out KOBJ_ADD

BugLink: http://bugs.launchpad.net/bugs/1546439
The initialization of partition's percpu_ref should have been done before
sending out KOBJ_ADD, which may cause userspace to read partition table.

This patch should fix this issue.

Reported-by: Naveen Kaje <nkaje@codeaurora.org>
Fixes: 6c71013ecb7e2(block: partition: convert percpu ref)
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
block/partition-generic.c