[PATCH] SCTP: Prevent OOPS if hmac modules didn't load
commitca526a57325f6ea331115069c44a58c4a85bfa9d
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 15 May 2007 08:32:35 +0000 (15 01:32 -0700)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:51 +0000 (23 14:32 -0700)
tree18157b2fe33048b4bb882bffe70cf5fc81c7ea11
parent7b890c17f74b976f82e38b84d29724212fccb91a
[PATCH] SCTP: Prevent OOPS if hmac modules didn't load

SCTP was checking for NULL when trying to detect hmac
allocation failure where it should have been using IS_ERR.
Also, print a rate limited warning to the log telling the
user what happend.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/sctp/socket.c