[SCTP]: Prevent OOPS if hmac modules didn't load
authorVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 9 May 2007 20:50:20 +0000 (13:50 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 11 May 2007 06:45:29 +0000 (23:45 -0700)
commit8dc4984a6bdcaf56cdb458a7338c32c16f32540c
tree565bd6c7090ac424fc4239537f03bc6ba86ea99b
parentd9568ba91b1fdd1ea4fdbf9fcc76b867cca6c1d5
[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>
net/sctp/socket.c