diff options
author | Tejun Heo <tj@kernel.org> | 2013-05-14 20:52:30 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-05-14 20:52:30 (GMT) |
commit | 2423c9c3f0ffffa8f87cbdafe9781273c5d1b6a2 (patch) | |
tree | 6ddb6e8f4cd577adab194c90eccec5ad50f2ab08 /lib/gen_crc32table.c | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) | |
download | linux-2423c9c3f0ffffa8f87cbdafe9781273c5d1b6a2.tar.xz |
blkcg: fix error return path in blkg_create()
In blkg_create(), after lookup of parent fails, the control jumps to
error path with the error code encoded into @blkg. The error path
doesn't use @blkg for the return value. It returns ERR_PTR(ret).
Make lookup fail path set @ret instead of @blkg.
Note that the parent lookup is guaranteed to succeed at that point and
the condition check is purely for sanity and triggers WARN when fails.
As such, I don't think it's necessary to mark it for -stable.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'lib/gen_crc32table.c')
0 files changed, 0 insertions, 0 deletions