Revert "crypto: user - no parsing of CRYPTO_MSG_GETALG"
[cascardo/linux.git] / crypto / crypto_user.c
index f71960d..43fe85f 100644 (file)
@@ -516,12 +516,10 @@ static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
                return err;
        }
 
-       if (type != (CRYPTO_MSG_GETALG - CRYPTO_MSG_BASE)) {
-               err = nlmsg_parse(nlh, crypto_msg_min[type], attrs,
-                                 CRYPTOCFGA_MAX, crypto_policy);
-               if (err < 0)
-                       return err;
-       }
+       err = nlmsg_parse(nlh, crypto_msg_min[type], attrs, CRYPTOCFGA_MAX,
+                         crypto_policy);
+       if (err < 0)
+               return err;
 
        if (link->doit == NULL)
                return -EINVAL;