Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67629
b: refs/heads/master
c: e108ceb
h: refs/heads/master
i:
  67627: c733404
v: v3
  • Loading branch information
vignesh babu authored and Martin Schwidefsky committed Oct 12, 2007
1 parent e583ca7 commit f8c6688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: b18a2db416088ad54a4bfb59c0b932be383aee83
refs/heads/master: e108cebb21316714de43767e242316c784471740
3 changes: 2 additions & 1 deletion trunk/drivers/s390/block/dasd_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include <linux/genhd.h>
#include <linux/hdreg.h>
#include <linux/interrupt.h>
#include <linux/log2.h>
#include <asm/ccwdev.h>
#include <linux/workqueue.h>
#include <asm/debug.h>
Expand Down Expand Up @@ -456,7 +457,7 @@ dasd_free_chunk(struct list_head *chunk_list, void *mem)
static inline int
dasd_check_blocksize(int bsize)
{
if (bsize < 512 || bsize > 4096 || (bsize & (bsize - 1)) != 0)
if (bsize < 512 || bsize > 4096 || !is_power_of_2(bsize))
return -EMEDIUMTYPE;
return 0;
}
Expand Down

0 comments on commit f8c6688

Please sign in to comment.