Commit 0b17219
amdkfd: use calloc instead of kzalloc to avoid integer overflow
BugLink: https://bugs.launchpad.net/bugs/2065805
commit 3b0daec upstream.
This uses calloc instead of doing the multiplication which might
overflow.
Cc: [email protected]
Signed-off-by: Dave Airlie <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Manuel Diewald <[email protected]>
Signed-off-by: Roxana Nicolescu <[email protected]>1 parent 93241b8 commit 0b17219
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
944 | | - | |
| 943 | + | |
| 944 | + | |
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| |||
0 commit comments