diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:41:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:41:09 -0500 |
commit | 1e8c573933fd7975679766850252ad08667e5ca4 (patch) | |
tree | 9600d0c7ee5ea8925f3c4dc30680c819e0363805 /drivers/s390 | |
parent | d71eecf3b8e893757cc3dec560c96a32ac090890 (diff) | |
parent | 232443e2c90cc2930624dec89df327615b002c55 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial
* git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (21 commits)
BUG_ON() Conversion in drivers/video/
BUG_ON() Conversion in drivers/parisc/
BUG_ON() Conversion in drivers/block/
BUG_ON() Conversion in sound/sparc/cs4231.c
BUG_ON() Conversion in drivers/s390/block/dasd.c
BUG_ON() Conversion in lib/swiotlb.c
BUG_ON() Conversion in kernel/cpu.c
BUG_ON() Conversion in ipc/msg.c
BUG_ON() Conversion in block/elevator.c
BUG_ON() Conversion in fs/coda/
BUG_ON() Conversion in fs/binfmt_elf_fdpic.c
BUG_ON() Conversion in input/serio/hil_mlc.c
BUG_ON() Conversion in md/dm-hw-handler.c
BUG_ON() Conversion in md/bitmap.c
The comment describing how MS_ASYNC works in msync.c is confusing
rcu: undeclared variable used in documentation
fix typos "wich" -> "which"
typo patch for fs/ufs/super.c
Fix simple typos
tabify drivers/char/Makefile
...
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/block/dasd.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 7967916bda18..0a9f12c4e911 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c | |||
@@ -541,9 +541,8 @@ dasd_kmalloc_request(char *magic, int cplength, int datasize, | |||
541 | struct dasd_ccw_req *cqr; | 541 | struct dasd_ccw_req *cqr; |
542 | 542 | ||
543 | /* Sanity checks */ | 543 | /* Sanity checks */ |
544 | if ( magic == NULL || datasize > PAGE_SIZE || | 544 | BUG_ON( magic == NULL || datasize > PAGE_SIZE || |
545 | (cplength*sizeof(struct ccw1)) > PAGE_SIZE) | 545 | (cplength*sizeof(struct ccw1)) > PAGE_SIZE); |
546 | BUG(); | ||
547 | 546 | ||
548 | cqr = kzalloc(sizeof(struct dasd_ccw_req), GFP_ATOMIC); | 547 | cqr = kzalloc(sizeof(struct dasd_ccw_req), GFP_ATOMIC); |
549 | if (cqr == NULL) | 548 | if (cqr == NULL) |
@@ -583,9 +582,8 @@ dasd_smalloc_request(char *magic, int cplength, int datasize, | |||
583 | int size; | 582 | int size; |
584 | 583 | ||
585 | /* Sanity checks */ | 584 | /* Sanity checks */ |
586 | if ( magic == NULL || datasize > PAGE_SIZE || | 585 | BUG_ON( magic == NULL || datasize > PAGE_SIZE || |
587 | (cplength*sizeof(struct ccw1)) > PAGE_SIZE) | 586 | (cplength*sizeof(struct ccw1)) > PAGE_SIZE); |
588 | BUG(); | ||
589 | 587 | ||
590 | size = (sizeof(struct dasd_ccw_req) + 7L) & -8L; | 588 | size = (sizeof(struct dasd_ccw_req) + 7L) & -8L; |
591 | if (cplength > 0) | 589 | if (cplength > 0) |