From 07ab8e7e3fe5384755a1e0dccc8c4a7e0e39e390 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 15 Dec 2010 16:47:08 +0000 Subject: [PATCH] Merge of the trunk's r3094: Fix wrong last_len computation reported by ido benda git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3095 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_user.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/scst/src/dev_handlers/scst_user.c b/scst/src/dev_handlers/scst_user.c index ec06b4325..89166f095 100644 --- a/scst/src/dev_handlers/scst_user.c +++ b/scst/src/dev_handlers/scst_user.c @@ -578,8 +578,6 @@ static int dev_user_alloc_sg(struct scst_user_cmd *ucmd, int cached_buff) last_len = bufflen & ~PAGE_MASK; else last_len = orig_bufflen & ~PAGE_MASK; - if (last_len == 0) - last_len = PAGE_SIZE; } ucmd->buff_cached = cached_buff;