···17361736 unsigned int sb_count, i_len, o_len;17371737 int ret;1738173817391739- if (rsa->key_size > CCP_RSA_MAX_WIDTH)17391739+ /* Check against the maximum allowable size, in bits */17401740+ if (rsa->key_size > cmd_q->ccp->vdata->rsamax)17401741 return -EINVAL;1741174217421743 if (!rsa->exp || !rsa->mod || !rsa->src || !rsa->dst)
+1
drivers/crypto/ccp/sp-dev.h
···4040 void (*setup)(struct ccp_device *);4141 const struct ccp_actions *perform;4242 const unsigned int offset;4343+ const unsigned int rsamax;4344};4445/* Structure to hold SP device data */4546struct sp_dev_vdata {