Skip to contentSkip to conversation

s390:Use BUG_ON instead of if condition followed by BUG.

PATCH In review [email protected] 2 participants 2 messages Nov 3, 2021 – Nov 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390:Use BUG_ON instead of if condition followed by BUG.

From: Zhang Mingyu <[email protected]>

This issue was detected with the help of Coccinelle.

---
 arch/s390/mm/fault.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/s390/mm/fault.c +1 -2
index d30f5986fa85..48a0231158c9 100644
@@ -824,8 +824,7 @@ void do_secure_storage_access(struct pt_regs *regs)
 			break;
 		rc = arch_make_page_accessible(page);
 		put_page(page);
-		if (rc)
-			BUG();
+		BUG_ON(rc);
 		break;
 	case GMAP_FAULT:
 	default:
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 9 lines · On Wed, Nov 03, 2021 at 05:56:22AM +0000, [email protected] wrote:

From: Zhang Mingyu <[email protected]>

This issue was detected with the help of Coccinelle.

---
 arch/s390/mm/fault.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

S-O-B chain is incorrect. Sent by [email protected], but not listed anywhere. Therefore not applying.