From: Maciej Sosnowski Date: Tue, 11 Nov 2008 17:50:07 +0000 (+0000) Subject: I/OAT: fix dma_pin_iovec_pages() error handling X-Git-Tag: v2.6.27.6~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33cfbb0629d7e08875f23ceeff21c4067a0937e5;p=pandora-kernel.git I/OAT: fix dma_pin_iovec_pages() error handling commit c2c0b4c5434c0a25f7f7796b29155d53805909f5 upstream Error handling needs to be modified in dma_pin_iovec_pages(). It should return NULL instead of ERR_PTR (pinned_list is checked for NULL in tcp_recvmsg() to determine if iovec pages have been successfully pinned down). In case of error for the first iovec, local_list->nr_iovecs needs to be initialized. Signed-off-by: Maciej Sosnowski Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed