aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/alpha/kernel/srmcons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/kernel/srmcons.c b/arch/alpha/kernel/srmcons.c
index 75692320386..85a821aaceb 100644
--- a/arch/alpha/kernel/srmcons.c
+++ b/arch/alpha/kernel/srmcons.c
@@ -164,9 +164,9 @@ srmcons_get_private_struct(struct srmcons_private **ps)
164 int retval = 0; 164 int retval = 0;
165 165
166 if (srmconsp == NULL) { 166 if (srmconsp == NULL) {
167 srmconsp = kmalloc(sizeof(*srmconsp), GFP_KERNEL);
167 spin_lock_irqsave(&srmconsp_lock, flags); 168 spin_lock_irqsave(&srmconsp_lock, flags);
168 169
169 srmconsp = kmalloc(sizeof(*srmconsp), GFP_KERNEL);
170 if (srmconsp == NULL) 170 if (srmconsp == NULL)
171 retval = -ENOMEM; 171 retval = -ENOMEM;
172 else { 172 else {