]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ser_gigaset: return -ENOMEM on error instead of success
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Dec 2016 11:22:03 +0000 (14:22 +0300)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:46:53 +0000 (00:46 +0200)
commit3dc64c463c77d799e28205775b707186da5fc6b4
treeae91039ffb3805a37eb572c4cd426fc7be7de0ab
parentb734c02b4ccd6307232278eb4cc908aa962be4a4
ser_gigaset: return -ENOMEM on error instead of success

commit 93a97c50cbf1c007caf12db5cc23e0d5b9c8473c upstream.

If we can't allocate the resources in gigaset_initdriver() then we
should return -ENOMEM instead of zero.

Fixes: 2869b23e4b95 ("[PATCH] drivers/isdn/gigaset: new M101 driver (v2)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/isdn/gigaset/ser-gigaset.c