mdev: treat zero-length /dev/mdev.seq the same as "\n" one. Closes 7334
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
07f7ea70ed
commit
26a8b9f196
@ -972,7 +972,7 @@ wait_for_seqfile(const char *seq)
|
||||
break;
|
||||
}
|
||||
seqbuf[seqlen] = '\0';
|
||||
if (seqbuf[0] == '\n') {
|
||||
if (seqbuf[0] == '\n' || seqbuf[0] == '\0') {
|
||||
/* seed file: write out seq ASAP */
|
||||
xwrite_str(seq_fd, seq);
|
||||
xlseek(seq_fd, 0, SEEK_SET);
|
||||
|
Loading…
Reference in New Issue
Block a user