mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scst_dlm: Fix scst_read_file() (merge r7872 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7897 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -516,7 +516,7 @@ static int scst_read_file(const char *path, char *buf, int buf_len)
|
||||
goto out;
|
||||
}
|
||||
pos = 0;
|
||||
ret = scst_read(f, buf, buf_len, &pos);
|
||||
ret = kernel_read(f, buf, buf_len, &pos);
|
||||
if (ret >= 0)
|
||||
buf[min(ret, buf_len - 1)] = '\0';
|
||||
filp_close(f, NULL);
|
||||
|
||||
Reference in New Issue
Block a user