kernel/taskstats.c: add nla_nest_cancel() for failure processing between nla_nest_sta...
authorChen Gang <gang.chen@asianux.com>
Tue, 12 Nov 2013 23:11:22 +0000 (15:11 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:33 +0000 (12:09 +0900)
commit3fa582663129330d57d15b97ae534dc1203fc3aa
treeb648e5937c02b442fba0bd0918e5566b24d8d7f4
parentf02147ef190b3963bb61ec0e140ec47f22889f38
kernel/taskstats.c: add nla_nest_cancel() for failure processing between nla_nest_start() and nla_nest_end()

When failure occurs between nla_nest_start() and nla_nest_end(), we should
call nla_nest_cancel() to clean up related things.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/taskstats.c