]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel/taskstats.c: add nla_nest_cancel() for failure processing between nla_nest_sta...
authorChen Gang <gang.chen@asianux.com>
Tue, 5 Nov 2013 05:57:37 +0000 (16:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:57:37 +0000 (16:57 +1100)
commit03624ad9ae0fd157a9501e05efe3baf51becc89d
tree967b1f047a8a5614db576090759aedf423abfffd
parent88d826faf48260901bdd516c294494d25b5af6bc
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>
kernel/taskstats.c