Re: [PATCH v2 6/9] ide-cd: Remove redundant sense buffer

From: David Miller
Date: Tue Jul 31 2018 - 17:30:22 EST


From: Kees Cook <keescook@xxxxxxxxxxxx>
Date: Tue, 31 Jul 2018 12:51:51 -0700

> This is already able to process the sense buffer, so remove the redundant
> parsing during the failure path. This also fixes any possible stale values
> since the prior code did not check the sense length.
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>