.. | .. |
---|
547 | 547 | |
---|
548 | 548 | fn_1 = kasprintf(GFP_KERNEL, "%pOF", ce_1->np); |
---|
549 | 549 | fn_2 = kasprintf(GFP_KERNEL, "%pOF", ce_2->np); |
---|
550 | | - node_path_match = !strcmp(fn_1, fn_2); |
---|
| 550 | + node_path_match = !fn_1 || !fn_2 || !strcmp(fn_1, fn_2); |
---|
551 | 551 | kfree(fn_1); |
---|
552 | 552 | kfree(fn_2); |
---|
553 | 553 | if (node_path_match) { |
---|
.. | .. |
---|
582 | 582 | |
---|
583 | 583 | fn_1 = kasprintf(GFP_KERNEL, "%pOF", ce_1->np); |
---|
584 | 584 | fn_2 = kasprintf(GFP_KERNEL, "%pOF", ce_2->np); |
---|
585 | | - node_path_match = !strcmp(fn_1, fn_2); |
---|
| 585 | + node_path_match = !fn_1 || !fn_2 || !strcmp(fn_1, fn_2); |
---|
586 | 586 | kfree(fn_1); |
---|
587 | 587 | kfree(fn_2); |
---|
588 | 588 | if (node_path_match && |
---|