]> git.baikalelectronics.ru Git - kernel.git/commit
taskstats: fix nl parsing in accounting/getdelays.c
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 27 Apr 2016 15:53:08 +0000 (17:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Apr 2016 16:50:14 +0000 (12:50 -0400)
commit71a4f9d9e75a2d20d4285c5ff20b09408c8e3f8c
treec11f34750ad1786576433edcff3cfad23582c139
parent8f6e0aa662596fb1e724d57ccd911104ab0b1fd6
taskstats: fix nl parsing in accounting/getdelays.c

The type TASKSTATS_TYPE_NULL should always be ignored.

When jumping to the next attribute, only the length of the current
attribute should be added, not the length of all nested attributes.
This last bug was not visible before commit 9df561852511, because the
kernel didn't put more than two nested attributes.

Fixes: 3cfc67e46c89 ("[PATCH] per-task-delay-accounting: documentation")
Fixes: 9df561852511 ("taskstats: use the libnl API to align nlattr on 64-bit")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/accounting/getdelays.c