RE: [PATCH] ipv4: esp4: use BUG_ON instead of if condition followed by BUG

From: Yossi Kuperman
Date: Tue Oct 24 2017 - 05:30:22 EST


> Subject: [PATCH] ipv4: esp4: use BUG_ON instead of if condition followed by
> BUG
>
> Use BUG_ON instead of if condition followed by BUG in esp_remove_trailer.
>
> This issue was detected with the help of Coccinelle.
>
> Signed-off-by: Gustavo A. R. Silva <garsilva@xxxxxxxxxxxxxx>
> ---
> net/ipv4/esp4.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>

Please consider esp6 as well.