Lib.c: Fix geting devname for devices with long path

In scenario where VMD is enabled, and "x8" type of NVMe drive is
plugged into PCIe switch - the path will be longer than 200 chars
(additional VMD domain + 2 level of PCIe switches).
This patch makes the buffer big enough to handle this kind of
configurations.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
This commit is contained in:
Pawel Baldysiak 2016-10-21 11:37:51 +02:00 committed by Jes Sorensen
parent 07cb1e57e0
commit 52a9408561
1 changed files with 1 additions and 1 deletions

2
lib.c
View File

@ -64,7 +64,7 @@ int get_mdp_major(void)
char *devid2kname(int devid)
{
char path[30];
char link[200];
char link[PATH_MAX];
static char devnm[32];
char *cp;
int n;