projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PCI: dwc: Fix inverted condition of DMA mask setup warning
[linux-2.6-microblaze.git]
/
block
/
blk-zoned.c
diff --git
a/block/blk-zoned.c
b/block/blk-zoned.c
index
81152a2
..
6817a67
100644
(file)
--- a/
block/blk-zoned.c
+++ b/
block/blk-zoned.c
@@
-498,6
+498,9
@@
int blk_revalidate_disk_zones(struct gendisk *disk,
if (WARN_ON_ONCE(!queue_is_mq(q)))
return -EIO;
+ if (!get_capacity(disk))
+ return -EIO;
+
/*
* Ensure that all memory allocations in this context are done as if
* GFP_NOIO was specified.