sparc: Fix sbus_alloc_coherent error handling.
authorKristoffer Glembo <kristoffer@gaisler.com>
Tue, 18 Jan 2011 04:10:29 +0000 (04:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Mar 2011 01:18:59 +0000 (18:18 -0700)
commit0c7c6a3c05f1d6d7e99fff0ca4056dce3ce07484
treea3cbb0512c6c069fe8347810eea0ad4ac27f0b0d
parent7feee249d47f950a19ca142660ee41fe27b04b27
sparc: Fix sbus_alloc_coherent error handling.

Order of kfree and free_pages were swapped in the error handling.

Signed-off-by: Kristoffer Glembo <kristoffer@gaisler.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ioport.c