From: H Hartley Sweeten Date: Wed, 9 Jan 2013 20:25:54 +0000 (-0700) Subject: staging: comedi: comedi_buf: factor out common code to free the async buffer X-Git-Tag: v3.9-rc1~127^2~441 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=718c4d68d9491e8bc16a614d193b257efc41723e;p=pandora-kernel.git staging: comedi: comedi_buf: factor out common code to free the async buffer The function comedi_buf_alloc() uses two loops to free the async buffer's buf_page_list. The first one is used at the beginning to deallocate the current buffer. The second is used to cleanup if the new buffer allocation fails. Factor out the common code to a new function. Signed-off-by: H Hartley Sweeten Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed