]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix getdelays.c - cpumask length and error reporting
authorBalbir Singh <balbir@in.ibm.com>
Sun, 1 Oct 2006 06:28:54 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:29 +0000 (00:39 -0700)
commit60a9cdb7c774a415ea791c31507032cb3ebfb4ce
tree1e5b706964002cc6bfc42bc34f9be7f85382fb84
parenta3c7448d0758c10bcaf97a2bc1f5e98380c4e222
[PATCH] Fix getdelays.c - cpumask length and error reporting

Fix the length passed while (un)registering cpumask.  We were passing sizeof
the array, make it strlen().

Error value printed in fatal errors should be derived from the message.  The
message contains an nlmsgerr embedded with an error value.  We must report
that value to the user.

Signed-off-by: Balbir Singh <balbir@in.ibm.com>
Cc: Jamal Hadi <hadi@cyberus.ca>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Thomas Graf <tgraf@suug.ch>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jay Lan <jlan@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/accounting/getdelays.c