diff options
Diffstat (limited to 'drivers/net/irda/irtty-sir.c')
-rw-r--r-- | drivers/net/irda/irtty-sir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/irda/irtty-sir.c b/drivers/net/irda/irtty-sir.c index 30087ca23a0f..6e4d4b62c9a8 100644 --- a/drivers/net/irda/irtty-sir.c +++ b/drivers/net/irda/irtty-sir.c | |||
@@ -459,8 +459,10 @@ static int irtty_open(struct tty_struct *tty) | |||
459 | 459 | ||
460 | /* allocate private device info block */ | 460 | /* allocate private device info block */ |
461 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); | 461 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); |
462 | if (!priv) | 462 | if (!priv) { |
463 | ret = -ENOMEM; | ||
463 | goto out_put; | 464 | goto out_put; |
465 | } | ||
464 | 466 | ||
465 | priv->magic = IRTTY_MAGIC; | 467 | priv->magic = IRTTY_MAGIC; |
466 | priv->tty = tty; | 468 | priv->tty = tty; |