mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 13:11:27 +00:00
Fix wrong last_len computation reported by ido benda <idombd@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user