Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144762
b: refs/heads/master
c: d1a2627
h: refs/heads/master
v: v3
  • Loading branch information
Inaky Perez-Gonzalez committed May 6, 2009
1 parent 53dd963 commit 92842fb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 457ca7bb6bdf39d0832d3f88c65fa367a3b20de6
refs/heads/master: d1a2627a29667fe7c4a9d06e1579a2d65bd39bba
7 changes: 4 additions & 3 deletions trunk/net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,10 @@ static struct device_type bt_link = {
static void add_conn(struct work_struct *work)
{
struct hci_conn *conn = container_of(work, struct hci_conn, work_add);
struct hci_dev *hdev = conn->hdev;

/* ensure previous del is complete */
flush_work(&conn->work_del);

dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle);

if (device_add(&conn->dev) < 0) {
BT_ERR("Failed to register connection device");
return;
Expand Down Expand Up @@ -157,8 +154,12 @@ void hci_conn_init_sysfs(struct hci_conn *conn)

void hci_conn_add_sysfs(struct hci_conn *conn)
{
struct hci_dev *hdev = conn->hdev;

BT_DBG("conn %p", conn);

dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle);

queue_work(bt_workq, &conn->work_add);
}

Expand Down
11 changes: 6 additions & 5 deletions trunk/net/wimax/op-msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ struct sk_buff *wimax_msg_alloc(struct wimax_dev *wimax_dev,
}
result = nla_put(skb, WIMAX_GNL_MSG_DATA, size, msg);
if (result < 0) {
dev_err(dev, "no memory to add payload in attribute\n");
dev_err(dev, "no memory to add payload (msg %p size %zu) in "
"attribute: %d\n", msg, size, result);
goto error_nla_put;
}
genlmsg_end(skb, genl_msg);
Expand Down Expand Up @@ -299,10 +300,10 @@ int wimax_msg(struct wimax_dev *wimax_dev, const char *pipe_name,
struct sk_buff *skb;

skb = wimax_msg_alloc(wimax_dev, pipe_name, buf, size, gfp_flags);
if (skb == NULL)
goto error_msg_new;
result = wimax_msg_send(wimax_dev, skb);
error_msg_new:
if (IS_ERR(skb))
result = PTR_ERR(skb);
else
result = wimax_msg_send(wimax_dev, skb);
return result;
}
EXPORT_SYMBOL_GPL(wimax_msg);
Expand Down

0 comments on commit 92842fb

Please sign in to comment.