From: Maciej Sosnowski Date: Fri, 7 Nov 2008 01:46:33 +0000 (+0000) Subject: [2/4] I/OAT: fix dma_pin_iovec_pages() error handling X-Git-Tag: v2.6.28-rc5~90^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2c0b4c5434c0a25f7f7796b29155d53805909f5;p=pandora-kernel.git [2/4] I/OAT: fix dma_pin_iovec_pages() error handling 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. Cc: Signed-off-by: Maciej Sosnowski Signed-off-by: David S. Miller --- Reading git-diff-tree failed