Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha
Commits
be50112e
Commit
be50112e
authored
Nov 23, 2023
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: bug fix when building scatterlist on 5.10
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
93a04fd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ft-buf.c
software/kernel/ft-buf.c
+6
-5
No files found.
software/kernel/ft-buf.c
View file @
be50112e
...
...
@@ -294,9 +294,8 @@ static int sg_alloc_table_from_block(struct device *dev,
size_t
max_segment_size
;
void
*
data
;
int
i
;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0)
int
err
;
#else
int
err
=
0
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)
struct
scatterlist
*
sg
;
#endif
...
...
@@ -338,10 +337,12 @@ static int sg_alloc_table_from_block(struct device *dev,
NULL
,
0
,
GFP_KERNEL
);
if
(
IS_ERR
(
sg
))
if
(
IS_ERR
(
sg
))
{
err
=
PTR_ERR
(
sg
);
sg_free_table
(
sgt
);
}
kfree
(
pages
);
return
PTR_ERR
(
sg
)
;
return
err
;
#endif
}
...
...
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