diff options
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/boot/installgrub/installgrub.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/cmd/boot/installgrub/installgrub.c b/usr/src/cmd/boot/installgrub/installgrub.c index 18b8f13cd1..9d95b37274 100644 --- a/usr/src/cmd/boot/installgrub/installgrub.c +++ b/usr/src/cmd/boot/installgrub/installgrub.c @@ -875,8 +875,11 @@ found_part: * warn, if Solaris in primary partition and GRUB not in MBR and * partition is not active */ - if (!log_part && part->bootid != 128 && !write_mbr) { - (void) fprintf(stdout, SOLPAR_INACTIVE, device->partition + 1); + if (part != NULL) { + if (!log_part && part->bootid != 128 && !write_mbr) { + (void) fprintf(stdout, SOLPAR_INACTIVE, + device->partition + 1); + } } return (BC_SUCCESS); |