Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63385
b: refs/heads/master
c: 916e89f
h: refs/heads/master
i:
  63383: 86c6f30
v: v3
  • Loading branch information
Mariusz Kozlowski authored and David S. Miller committed Jul 31, 2007
1 parent 8edae36 commit 1f1dba6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: da4e9fea85ea42c9c6ce163a85d5164efbec31a2
refs/heads/master: 916e89fdd1b21eec4abbc9e228757db77660fff2
10 changes: 6 additions & 4 deletions trunk/drivers/sbus/char/bbc_envctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,12 @@ static int kenvctrld(void *__unused)

static void attach_one_temp(struct linux_ebus_child *echild, int temp_idx)
{
struct bbc_cpu_temperature *tp = kmalloc(sizeof(*tp), GFP_KERNEL);
struct bbc_cpu_temperature *tp;

tp = kzalloc(sizeof(*tp), GFP_KERNEL);
if (!tp)
return;
memset(tp, 0, sizeof(*tp));

tp->client = bbc_i2c_attach(echild);
if (!tp->client) {
kfree(tp);
Expand Down Expand Up @@ -525,11 +526,12 @@ static void attach_one_temp(struct linux_ebus_child *echild, int temp_idx)

static void attach_one_fan(struct linux_ebus_child *echild, int fan_idx)
{
struct bbc_fan_control *fp = kmalloc(sizeof(*fp), GFP_KERNEL);
struct bbc_fan_control *fp;

fp = kzalloc(sizeof(*fp), GFP_KERNEL);
if (!fp)
return;
memset(fp, 0, sizeof(*fp));

fp->client = bbc_i2c_attach(echild);
if (!fp->client) {
kfree(fp);
Expand Down

0 comments on commit 1f1dba6

Please sign in to comment.