Guard against the unlikely case of the alias path containing the '%' symbols.

Reported by:	arundel
MFC after:	1 week
This commit is contained in:
kib 2011-11-11 04:12:58 +00:00
parent 1084039b85
commit f3c70bd299

View File

@ -1016,7 +1016,7 @@ make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev,
old_alias = NULL;
ret = 0;
} else {
ret = make_dev_alias_p(flags, cdev, pdev, devfspath);
ret = make_dev_alias_p(flags, cdev, pdev, "%s", devfspath);
}
out:
if (old_alias != NULL)