NAME_SIZE is too small for some configurations. This patch allows more
or longer names, it just keeps the stack in a sane state.
if ((path == NULL) || (dev == NULL))
return -ENODEV;
if ((path == NULL) || (dev == NULL))
return -ENODEV;
- memset(keystr, 0, NAME_SIZE);
+ memset(keystr, 0, SYSFS_PATH_MAX);
strfieldcpy(keystr, path);
key.dptr = keystr;
key.dsize = strlen(keystr) + 1;
strfieldcpy(keystr, path);
key.dptr = keystr;
key.dsize = strlen(keystr) + 1;