diff options
| -rw-r--r-- | arch/s390/hypfs/hypfs_diag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/hypfs/hypfs_diag.c b/arch/s390/hypfs/hypfs_diag.c index 443fa377d9ff..2782cf9da5b4 100644 --- a/arch/s390/hypfs/hypfs_diag.c +++ b/arch/s390/hypfs/hypfs_diag.c | |||
| @@ -379,7 +379,7 @@ static void *diag204_alloc_vbuf(int pages) | |||
| 379 | static void *diag204_alloc_rbuf(void) | 379 | static void *diag204_alloc_rbuf(void) |
| 380 | { | 380 | { |
| 381 | diag204_buf = (void*)__get_free_pages(GFP_KERNEL,0); | 381 | diag204_buf = (void*)__get_free_pages(GFP_KERNEL,0); |
| 382 | if (diag204_buf) | 382 | if (!diag204_buf) |
| 383 | return ERR_PTR(-ENOMEM); | 383 | return ERR_PTR(-ENOMEM); |
| 384 | diag204_buf_pages = 1; | 384 | diag204_buf_pages = 1; |
| 385 | return diag204_buf; | 385 | return diag204_buf; |
| @@ -521,7 +521,7 @@ __init int hypfs_diag_init(void) | |||
| 521 | } | 521 | } |
| 522 | rc = diag224_get_name_table(); | 522 | rc = diag224_get_name_table(); |
| 523 | if (rc) { | 523 | if (rc) { |
| 524 | diag224_delete_name_table(); | 524 | diag204_free_buffer(); |
| 525 | printk(KERN_ERR "hypfs: could not get name table.\n"); | 525 | printk(KERN_ERR "hypfs: could not get name table.\n"); |
| 526 | } | 526 | } |
| 527 | return rc; | 527 | return rc; |
