aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorSven Wegener <[email protected]>2008-10-03 15:23:48 -0700
committerLinus Torvalds <[email protected]>2008-10-03 18:22:18 -0700
commit95bf14bff58fd200f0c2147c84582cc2488367d0 (patch)
treeedc4c02c44981aa1a538cf883f8af34a69fbc552 /net/unix/sysctl_net_unix.c
parent07f696c7772fb3501e9531de38333c49143a8d52 (diff)
leds-pca955x: add proper error handling and fix bogus memory handling
Check the return value of led_classdev_register and unregister all registered devices, if registering one device fails. Also the dynamic memory handling is totally bogus. You can't allocate multiple chunks via kzalloc() and expect them to be in order later. I wonder how this ever worked. Signed-off-by: Sven Wegener <[email protected]> Acked-by: Nate Case <[email protected]> Tested-by: Nate Case <[email protected]> Acked-by: Richard Purdie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions