mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
Merge branch 'svn-trunk' into master
This commit is contained in:
@@ -524,7 +524,12 @@ kernel_write_backport(struct file *file, const void *buf, size_t count,
|
||||
loff_t *pos)
|
||||
{
|
||||
#ifndef CONFIG_SUSE_KERNEL
|
||||
return kernel_write(file, buf, count, *pos);
|
||||
int res = kernel_write(file, buf, count, *pos);
|
||||
|
||||
if (res > 0)
|
||||
*pos += res;
|
||||
|
||||
return res;
|
||||
#else
|
||||
return kernel_write(file, buf, count, pos);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user