]> err.no Git - linux-2.6/commit
IB: Coverity fixes to sysfs.c
authorRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:25 +0000 (10:08 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:25 +0000 (10:08 -0800)
commit048975ac580a771fc5bb96c6b454cba897ab1a73
tree32405003b3cb78a3e2ccf765868f60a273c1313b
parent0b3ea0829cbcdaee6e018a83a2949ef458213f3b
IB: Coverity fixes to sysfs.c

Fix two bugs found by coverity:
 - Memory leak in error path of alloc_group_attrs()
 - Fencepost error in state_show(): the test should be < ARRAY_SIZE(),
   not <= ARRAY_SIZE().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/sysfs.c