Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84217
b: refs/heads/master
c: 54b2c8f
h: refs/heads/master
i:
  84215: 56140f6
v: v3
  • Loading branch information
Jesper Juhl authored and Artem Bityutskiy committed Dec 26, 2007
1 parent cb5f4a5 commit 82782bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 393852ecfeec575ac78216b0eb58e4fd92f0816c
refs/heads/master: 54b2c8f93d7c3ddc04b55666b878fec437d32983
5 changes: 3 additions & 2 deletions trunk/drivers/mtd/ubi/vmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ static struct device_attribute attr_vol_upd_marker =
static ssize_t vol_attribute_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
int ret;
int ret = -ENODEV;

struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev);

spin_lock(&vol->ubi->volumes_lock);
if (vol->removed) {
spin_unlock(&vol->ubi->volumes_lock);
return -ENODEV;
return ret;
}
if (attr == &attr_vol_reserved_ebs)
ret = sprintf(buf, "%d\n", vol->reserved_pebs);
Expand Down

0 comments on commit 82782bf

Please sign in to comment.