git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
s390
/
block
/
dasd_erp.c
diff --git
a/drivers/s390/block/dasd_erp.c
b/drivers/s390/block/dasd_erp.c
index
b842377
..
8fd71ab
100644
(file)
--- a/
drivers/s390/block/dasd_erp.c
+++ b/
drivers/s390/block/dasd_erp.c
@@
-32,8
+32,9
@@
dasd_alloc_erp_request(char *magic, int cplength, int datasize,
int size;
/* Sanity checks */
int size;
/* Sanity checks */
- BUG_ON( magic == NULL || datasize > PAGE_SIZE ||
- (cplength*sizeof(struct ccw1)) > PAGE_SIZE);
+ if ( magic == NULL || datasize > PAGE_SIZE ||
+ (cplength*sizeof(struct ccw1)) > PAGE_SIZE)
+ BUG();
size = (sizeof(struct dasd_ccw_req) + 7L) & -8L;
if (cplength > 0)
size = (sizeof(struct dasd_ccw_req) + 7L) & -8L;
if (cplength > 0)
@@
-124,7
+125,8
@@
dasd_default_erp_postaction(struct dasd_ccw_req * cqr)
struct dasd_device *device;
int success;
struct dasd_device *device;
int success;
- BUG_ON(cqr->refers == NULL || cqr->function == NULL);
+ if (cqr->refers == NULL || cqr->function == NULL)
+ BUG();
device = cqr->device;
success = cqr->status == DASD_CQR_DONE;
device = cqr->device;
success = cqr->status == DASD_CQR_DONE;