Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108955
b: refs/heads/master
c: 0983e56
h: refs/heads/master
i:
  108953: 88dbbb8
  108951: 8723093
v: v3
  • Loading branch information
Julien Brunel authored and Martin Schwidefsky committed Aug 21, 2008
1 parent 2851828 commit a9817a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 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: 6a55617ed5d1aa62b850de2cf66f5ede2eef4825
refs/heads/master: 0983e56835cbf4796e8f5780c549c32ac1c3afac
3 changes: 2 additions & 1 deletion trunk/drivers/s390/block/dasd_eer.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/poll.h>
#include <linux/mutex.h>
#include <linux/smp_lock.h>
#include <linux/err.h>

#include <asm/uaccess.h>
#include <asm/atomic.h>
Expand Down Expand Up @@ -457,7 +458,7 @@ int dasd_eer_enable(struct dasd_device *device)

cqr = dasd_kmalloc_request("ECKD", 1 /* SNSS */,
SNSS_DATA_SIZE, device);
if (!cqr)
if (IS_ERR(cqr))
return -ENOMEM;

cqr->startdev = device;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/s390/char/tape_char.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ tapechar_check_idalbuffer(struct tape_device *device, size_t block_size)

/* The current idal buffer is not correct. Allocate a new one. */
new = idal_buffer_alloc(block_size, 0);
if (new == NULL)
if (IS_ERR(new))
return -ENOMEM;

if (device->char_data.idal_buf != NULL)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/s390/char/tape_std.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9817a2

Please sign in to comment.