Print this page
10076 make usr/src/test smatch clean
*** 74,86 ****
if (op == NULL)
return (NULL);
while ((fd = open(CRYPTO_DEVICE, O_RDWR)) < 0) {
! if (errno != EINTR)
return (NULL);
}
op->in = (char *)arg->in;
op->out = (char *)arg->out;
op->key = (char *)arg->key;
op->param = (char *)arg->param;
--- 74,88 ----
if (op == NULL)
return (NULL);
while ((fd = open(CRYPTO_DEVICE, O_RDWR)) < 0) {
! if (errno != EINTR) {
! free(op);
return (NULL);
}
+ }
op->in = (char *)arg->in;
op->out = (char *)arg->out;
op->key = (char *)arg->key;
op->param = (char *)arg->param;