X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fs390%2Fchar%2Ftape_std.c;h=cc8fd781ee227ce6e8f1ae38956b2fb002fe5ad6;hb=6450f65168bcf3c03b5fb44c2fe96682c0d3086b;hp=2a1af4e60be0919226217471beec3b1ea8f2b7b7;hpb=fe1b4ba400193176213f95be3ea711a53518a609;p=linux-2.6-omap-h63xx.git diff --git a/drivers/s390/char/tape_std.c b/drivers/s390/char/tape_std.c index 2a1af4e60be..cc8fd781ee2 100644 --- a/drivers/s390/char/tape_std.c +++ b/drivers/s390/char/tape_std.c @@ -248,7 +248,7 @@ tape_std_mtsetblk(struct tape_device *device, int count) /* Allocate a new idal buffer. */ new = idal_buffer_alloc(count, 0); - if (new == NULL) + if (IS_ERR(new)) return -ENOMEM; if (device->char_data.idal_buf != NULL) idal_buffer_free(device->char_data.idal_buf);