Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347595
b: refs/heads/master
c: a92ffdf
h: refs/heads/master
i:
  347593: 26fa592
  347591: 3609def
v: v3
  • Loading branch information
Alex Elder committed Nov 1, 2012
1 parent 239d7aa commit 78231a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 2c0d0a10ea89456781218f458f6bf72e99d87d2a
refs/heads/master: a92ffdf8a9b09f8fae9a8f418f87f30a5e459570
5 changes: 4 additions & 1 deletion trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,10 @@ static ssize_t rbd_name_show(struct device *dev,
{
struct rbd_device *rbd_dev = dev_to_rbd_dev(dev);

return sprintf(buf, "%s\n", rbd_dev->spec->image_name);
if (rbd_dev->spec->image_name)
return sprintf(buf, "%s\n", rbd_dev->spec->image_name);

return sprintf(buf, "(unknown)\n");
}

static ssize_t rbd_image_id_show(struct device *dev,
Expand Down

0 comments on commit 78231a9

Please sign in to comment.