Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
eee1f549
Commit
eee1f549
authored
Nov 21, 2020
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SUNRPC: Fix open coded xdr_stream_remaining()
Signed-off-by:
Trond Myklebust
<
trond.myklebust@hammerspace.com
>
parent
0279024f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/sunrpc/xdr.c
net/sunrpc/xdr.c
+2
-2
No files found.
net/sunrpc/xdr.c
View file @
eee1f549
...
@@ -1261,7 +1261,7 @@ uint64_t xdr_align_data(struct xdr_stream *xdr, uint64_t offset, uint32_t length
...
@@ -1261,7 +1261,7 @@ uint64_t xdr_align_data(struct xdr_stream *xdr, uint64_t offset, uint32_t length
xdr_realign_pages
(
xdr
);
xdr_realign_pages
(
xdr
);
from
=
xdr_page_pos
(
xdr
);
from
=
xdr_page_pos
(
xdr
);
bytes
=
xdr
->
nwords
<<
2
;
bytes
=
xdr
_stream_remaining
(
xdr
)
;
if
(
length
<
bytes
)
if
(
length
<
bytes
)
bytes
=
length
;
bytes
=
length
;
...
@@ -1298,7 +1298,7 @@ uint64_t xdr_expand_hole(struct xdr_stream *xdr, uint64_t offset, uint64_t lengt
...
@@ -1298,7 +1298,7 @@ uint64_t xdr_expand_hole(struct xdr_stream *xdr, uint64_t offset, uint64_t lengt
xdr_realign_pages
(
xdr
);
xdr_realign_pages
(
xdr
);
from
=
xdr_page_pos
(
xdr
);
from
=
xdr_page_pos
(
xdr
);
bytes
=
xdr
->
nwords
<<
2
;
bytes
=
xdr
_stream_remaining
(
xdr
)
;
if
(
offset
+
length
+
bytes
>
buf
->
page_len
)
{
if
(
offset
+
length
+
bytes
>
buf
->
page_len
)
{
unsigned
int
shift
=
(
offset
+
length
+
bytes
)
-
buf
->
page_len
;
unsigned
int
shift
=
(
offset
+
length
+
bytes
)
-
buf
->
page_len
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment