Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37389
b: refs/heads/master
c: 4e66c97
h: refs/heads/master
i:
  37387: ee93073
v: v3
  • Loading branch information
Patrick Boettcher authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent 7412ea7 commit 18fea4c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 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: a2c00a0eee751e298c916508b6fa5cee0d7d188d
refs/heads/master: 4e66c97c9299d53f1d9167e42b05357f023099c8
9 changes: 5 additions & 4 deletions trunk/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static int dvb_usb_fe_sleep(struct dvb_frontend *fe)
int dvb_usb_fe_init(struct dvb_usb_device* d)
{
if (d->props.frontend_attach == NULL) {
err("strange '%s' doesn't want to attach a frontend.",d->desc->name);
err("strange: '%s' doesn't want to attach a frontend.",d->desc->name);
return 0;
}

Expand All @@ -186,8 +186,7 @@ int dvb_usb_fe_init(struct dvb_usb_device* d)

if (dvb_register_frontend(&d->dvb_adap, d->fe)) {
err("Frontend registration failed.");
if (d->fe->ops.release)
d->fe->ops.release(d->fe);
dvb_frontend_detach(d->fe);
d->fe = NULL;
return -ENODEV;
}
Expand All @@ -203,7 +202,9 @@ int dvb_usb_fe_init(struct dvb_usb_device* d)

int dvb_usb_fe_exit(struct dvb_usb_device *d)
{
if (d->fe != NULL)
if (d->fe != NULL) {
dvb_unregister_frontend(d->fe);
dvb_frontend_detach(d->fe);
}
return 0;
}
5 changes: 3 additions & 2 deletions trunk/drivers/media/dvb/frontends/dib3000mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,9 +899,10 @@ int dib3000mc_attach(struct i2c_adapter *i2c_adap, int no_of_demods, u8 default_
return 0;

error:
for (k = 0; k < num; k++)
for (k = 0; k < num; k++) {
kfree(demod[k]->demodulator_priv);

demod[k] = NULL;
}
return -EINVAL;
}

Expand Down

0 comments on commit 18fea4c

Please sign in to comment.