diff options
| author | Josh Boyer <jwboyer@redhat.com> | 2011-11-07 11:25:51 -0500 |
|---|---|---|
| committer | Josh Boyer <jwboyer@redhat.com> | 2011-11-07 11:25:51 -0500 |
| commit | ea8a97de392f5812bf340e217ae7907762c94917 (patch) | |
| tree | d7d8c79e5ecf4d0502918f2825b3e2121acb0e6c /hvcs_pi_buf_alloc.patch | |
| parent | 05e763b50e0db1ef9c00a211e3c6a92f5032190a (diff) | |
Linux 3.1-git7 (upstream 31555213f)
Diffstat (limited to 'hvcs_pi_buf_alloc.patch')
| -rw-r--r-- | hvcs_pi_buf_alloc.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/hvcs_pi_buf_alloc.patch b/hvcs_pi_buf_alloc.patch deleted file mode 100644 index ecabe49b..00000000 --- a/hvcs_pi_buf_alloc.patch +++ /dev/null @@ -1,43 +0,0 @@ - -The Power platform requires the partner info buffer to be page aligned -otherwise it will fail the partner info hcall with H_PARAMETER. Switch -from using kmalloc to allocate this buffer to __get_free_page to ensure -page alignment. - -Signed-off-by: Brian King <brking@linux.vnet.ibm.com> ---- - - drivers/tty/hvc/hvcs.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff -puN drivers/tty/hvc/hvcs.c~hvcs_pi_buf_alloc drivers/tty/hvc/hvcs.c ---- linux-2.6/drivers/tty/hvc/hvcs.c~hvcs_pi_buf_alloc 2011-09-09 16:00:25.000000000 -0500 -+++ linux-2.6-bjking1/drivers/tty/hvc/hvcs.c 2011-09-09 16:07:08.000000000 -0500 -@@ -1532,7 +1532,7 @@ static int __devinit hvcs_initialize(voi - goto register_fail; - } - -- hvcs_pi_buff = kmalloc(PAGE_SIZE, GFP_KERNEL); -+ hvcs_pi_buff = (unsigned long *) __get_free_page(GFP_KERNEL); - if (!hvcs_pi_buff) { - rc = -ENOMEM; - goto buff_alloc_fail; -@@ -1548,7 +1548,7 @@ static int __devinit hvcs_initialize(voi - return 0; - - kthread_fail: -- kfree(hvcs_pi_buff); -+ free_page((unsigned long)hvcs_pi_buff); - buff_alloc_fail: - tty_unregister_driver(hvcs_tty_driver); - register_fail: -@@ -1597,7 +1597,7 @@ static void __exit hvcs_module_exit(void - kthread_stop(hvcs_task); - - spin_lock(&hvcs_pi_lock); -- kfree(hvcs_pi_buff); -+ free_page((unsigned long)hvcs_pi_buff); - hvcs_pi_buff = NULL; - spin_unlock(&hvcs_pi_lock); - -_ |
