diff options
author | Karel Zak | 2017-07-11 12:17:40 +0200 |
---|---|---|
committer | Karel Zak | 2017-07-11 12:17:40 +0200 |
commit | 4360f56cf6e40b10ab6ace4cf74073de2381c192 (patch) | |
tree | baa89f60cf59c7162d8e110947fd344ccd4f6871 /libblkid/src/probe.c | |
parent | hwclock: sync one-liner descriptions (diff) | |
download | kernel-qcow2-util-linux-4360f56cf6e40b10ab6ace4cf74073de2381c192.tar.gz kernel-qcow2-util-linux-4360f56cf6e40b10ab6ace4cf74073de2381c192.tar.xz kernel-qcow2-util-linux-4360f56cf6e40b10ab6ace4cf74073de2381c192.zip |
libblkid: don't check for size on UBI (char dev)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/probe.c')
-rw-r--r-- | libblkid/src/probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index 3f4900ec4..9f56f528f 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -658,7 +658,7 @@ unsigned char *blkid_probe_get_buffer(blkid_probe pr, uint64_t off, uint64_t len return NULL; } - if (len == 0 || pr->off + pr->size < real_off + len) { + if (len == 0 || (!S_ISCHR(pr->mode) && pr->off + pr->size < real_off + len)) { DBG(BUFFER, ul_debug("\t ignore: request out of probing area")); errno = 0; return NULL; |