Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285043
b: refs/heads/master
c: 4a59c79
h: refs/heads/master
i:
  285041: ac9dd5f
  285039: 0811253
v: v3
  • Loading branch information
Richard Weinberger authored and Artem Bityutskiy committed Jan 15, 2012
1 parent 3b88347 commit 7cf4577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e234b5f2079414b3d772286e3ee00e7bbf6da833
refs/heads/master: 4a59c797a18917a5cf3ff7ade296b46134d91e6a
3 changes: 3 additions & 0 deletions trunk/drivers/mtd/ubi/cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,9 @@ static int verify_mkvol_req(const struct ubi_device *ubi,
if (req->alignment != 1 && n)
goto bad;

if (!req->name[0] || !req->name_len)
goto bad;

if (req->name_len > UBI_VOL_NAME_MAX) {
err = -ENAMETOOLONG;
goto bad;
Expand Down

0 comments on commit 7cf4577

Please sign in to comment.