|
@@ -118,6 +118,8 @@ static int lsm_append(char *new, char **result)
|
|
|
|
|
|
if (*result == NULL) {
|
|
if (*result == NULL) {
|
|
*result = kstrdup(new, GFP_KERNEL);
|
|
*result = kstrdup(new, GFP_KERNEL);
|
|
|
|
+ if (*result == NULL)
|
|
|
|
+ return -ENOMEM;
|
|
} else {
|
|
} else {
|
|
/* Check if it is the last registered name */
|
|
/* Check if it is the last registered name */
|
|
if (match_last_lsm(*result, new))
|
|
if (match_last_lsm(*result, new))
|