We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a50c58 commit 8982756Copy full SHA for 8982756
arch/x86/kernel/apic/x2apic_uv_x.c
@@ -617,7 +617,8 @@ static __init void build_uv_gr_table(void)
617
618
bytes = _gr_table_len * sizeof(struct uv_gam_range_s);
619
grt = kzalloc(bytes, GFP_KERNEL);
620
- BUG_ON(!grt);
+ if (WARN_ON_ONCE(!grt))
621
+ return;
622
_gr_table = grt;
623
624
for (; gre->type != UV_GAM_RANGE_TYPE_UNUSED; gre++) {
@@ -1548,7 +1549,8 @@ static void __init build_socket_tables(void)
1548
1549
return;
1550
}
1551
pr_err("UV: Error: UVsystab address translations not available!\n");
- BUG();
1552
+ WARN_ON_ONCE(!gre);
1553
1554
1555
1556
numn = num_possible_nodes();
0 commit comments