xen-livepatch: fix --force option comparison
PATCH 1/1 xen-livepatch: fix --force option comparison
The check for --force option shouldn't be against 0.
Reported-by Jan Beulich <[email protected]>
Fixes 62a72092a517 ('livepatch: introduce --force option')
Signed-off-by Roger Pau Monné <[email protected]>
--- tools/misc/xen-livepatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/misc/xen-livepatch.c +1 -1
@@ -576,7 +576,7 @@ int main(int argc, char *argv[])return 0 ; } -if (strcmp ("--force" , argv[1 ]) ) +if ( !strcmp ("--force" , argv[1 ]) ) {if ( argc <=2 ) {
Signature · 1 line
2.44.0
Quoted 5 lines · Roger Pau Monne
The check for --force option shouldn't be against 0.
Reported-by Jan Beulich <[email protected]>Fixes 62a72092a517 ('livepatch: introduce --force option')Signed-off-by Roger Pau Monné <[email protected]>
Acked-by Anthony PERARD <[email protected]>
Thanks,
Signature · 1 line
Anthony PERARD
Quoted 7 lines · Roger Pau Monne
The check for --force option shouldn't be against 0.
Reported-by Jan Beulich <[email protected]>Fixes 62a72092a517 ('livepatch: introduce --force option')Signed-off-by Roger Pau Monné <[email protected]>---
Reviewed-by Ross Lagerwall <[email protected]>