Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154709
b: refs/heads/master
c: b8d966e
h: refs/heads/master
i:
  154707: de3b53a
v: v3
  • Loading branch information
NeilBrown committed Jul 1, 2009
1 parent b14271d commit f4ff9ba
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 8f6c2e4b325a8e9f8f47febb2fd0ed4fae7d45a9
refs/heads/master: b8d966efd9a46a9a35beac50cbff6e30565125ef
6 changes: 4 additions & 2 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -3573,7 +3573,8 @@ suspend_lo_store(mddev_t *mddev, const char *buf, size_t len)
char *e;
unsigned long long new = simple_strtoull(buf, &e, 10);

if (mddev->pers->quiesce == NULL)
if (mddev->pers == NULL ||
mddev->pers->quiesce == NULL)
return -EINVAL;
if (buf == e || (*e && *e != '\n'))
return -EINVAL;
Expand Down Expand Up @@ -3601,7 +3602,8 @@ suspend_hi_store(mddev_t *mddev, const char *buf, size_t len)
char *e;
unsigned long long new = simple_strtoull(buf, &e, 10);

if (mddev->pers->quiesce == NULL)
if (mddev->pers == NULL ||
mddev->pers->quiesce == NULL)
return -EINVAL;
if (buf == e || (*e && *e != '\n'))
return -EINVAL;
Expand Down

0 comments on commit f4ff9ba

Please sign in to comment.