瀏覽代碼

efi_loader: text output for device path end node

Without the patch a device path consisting only of an end node is
displayed as '/UNKNOWN(007f,00ff)'. It should be displayed as '/'.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Heinrich Schuchardt 7 年之前
父節點
當前提交
3c950b3178
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/efi_loader/efi_device_path_to_text.c

+ 2 - 0
lib/efi_loader/efi_device_path_to_text.c

@@ -245,6 +245,8 @@ static char *efi_convert_single_device_node_to_text(
 	case DEVICE_PATH_TYPE_MEDIA_DEVICE:
 		str = dp_media(str, dp);
 		break;
+	case DEVICE_PATH_TYPE_END:
+		break;
 	default:
 		str = dp_unknown(str, dp);
 	}