]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipmi: Remove incorrect use of seq_has_overflowed
authorJoe Perches <joe@perches.com>
Sun, 22 Feb 2015 18:21:07 +0000 (10:21 -0800)
committerCorey Minyard <cminyard@mvista.com>
Sat, 4 Apr 2015 07:01:35 +0000 (02:01 -0500)
commit7f5eae65e5cab12787ae41a1a899c844f2345ded
tree8b0ff67381e0a4f5e4d315ad1d851f660dc659ef
parent6c310bc1acdd02110182a2ec6efa3e7571a3b80c
ipmi: Remove incorrect use of seq_has_overflowed

commit d6c5dc18d863 ("ipmi: Remove uses of return value of seq_printf")
incorrectly changed the return value of various proc_show functions
to use seq_has_overflowed().

These functions should return 0 on completion rather than 1/true
on overflow.  1 is the same as #define SEQ_SKIP which would cause
the output to not be emitted (skipped) instead.

This is a logical defect only as the length of these outputs are
all smaller than the initial allocation done by the seq filesystem.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/ipmi/ipmi_ssif.c