diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-10-15 15:30:45 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-10-16 06:14:28 (GMT) |
commit | df5c37ea9a3820a9515d8204450aec00f48f8f88 (patch) | |
tree | 0a7ca311e03be7738ae9e2bcbd3c43c7b8f9cf74 /net/bluetooth/l2cap.c | |
parent | e9c5702e3c5558dade169949abd730173e87ef9c (diff) | |
download | linux-fsl-qoriq-df5c37ea9a3820a9515d8204450aec00f48f8f88.tar.xz |
[Bluetooth] Handle return values from driver core functions
Some return values of the driver core register and create functions
are not handled and so might cause unexpected problems.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r-- | net/bluetooth/l2cap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index d56f60b..66fc621 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c @@ -2216,7 +2216,8 @@ static int __init l2cap_init(void) goto error; } - class_create_file(bt_class, &class_attr_l2cap); + if (class_create_file(bt_class, &class_attr_l2cap) < 0) + BT_ERR("Failed to create L2CAP info file"); BT_INFO("L2CAP ver %s", VERSION); BT_INFO("L2CAP socket layer initialized"); |