| Submitter | Artem Bityutskiy |
|---|---|
| Date | July 23, 2009, 3:46 p.m. |
| Message ID | <1248363983-29596-1-git-send-email-dedekind@infradead.org> |
| Download | mbox | patch |
| Permalink | /patch/30138/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 6a5fe96..c290f51 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h @@ -579,7 +579,8 @@ void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, for (rb = rb_first(root), \ pos = (rb ? container_of(rb, typeof(*pos), member) : NULL); \ rb; \ - rb = rb_next(rb), pos = container_of(rb, typeof(*pos), member)) + rb = rb_next(rb), \ + pos = (rb ? container_of(rb, typeof(*pos), member) : NULL)) /** * ubi_zalloc_vid_hdr - allocate a volume identifier header object.