summaryrefslogtreecommitdiff
path: root/staging/layer2.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-06-27 12:03:25 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-06-30 21:36:30 +0200
commitf6b2b535d482084e49ba8787973d8586ed51f563 (patch)
tree0835564347e1858fa620f958f2cb01756f4e25be /staging/layer2.c
parent8c75168ed5005f70955dd4ade93dec6abf481852 (diff)
trafgen: Print min packet size in error message
Print minimum needed packet size in case if validation error. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'staging/layer2.c')
0 files changed, 0 insertions, 0 deletions
online subsystems before cgroup_name/path() are operational
While refactoring cgroup creation, a5bca2152036 ("cgroup: factor out cgroup_create() out of cgroup_mkdir()") incorrectly onlined subsystems before the new cgroup is associated with it kernfs_node. This is fine for cgroup proper but cgroup_name/path() depend on the associated kernfs_node and if a subsystem makes the new cgroup_subsys_state visible, which they're allowed to after onlining, it can lead to NULL dereference. The current code performs cgroup creation and subsystem onlining in cgroup_create() and cgroup_mkdir() makes the cgroup and subsystems visible afterwards. There's no reason to online the subsystems early and we can simply drop cgroup_apply_control_enable() call from cgroup_create() so that the subsystems are onlined and made visible at the same time. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Fixes: a5bca2152036 ("cgroup: factor out cgroup_create() out of cgroup_mkdir()") Cc: stable@vger.kernel.org # v4.6+
Diffstat (limited to 'include/uapi/sound/usb_stream.h')