]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 19:19:17 +0000 (14:19 -0500)
commit93d73f78df3ecead65a769676f5fdcb053a98782
tree4d4b6c892210d23fdbfdf4c2a55c1ff74909b5bf
parent0a3871ba0220013afa90c59221681bbe5fb3eb89
ser_gigaset: return -ENOMEM on error instead of success

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

Fixes: 5ef874717205 ("[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>
drivers/isdn/gigaset/ser-gigaset.c