Commit 3177aa9
padata: add pd get/put refcnt helper
[ Upstream commit ae15420 ]
Add helpers for pd to get/put refcnt to make code consice.
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Acked-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: dd7d37c ("padata: avoid UAF for reorder_work")
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 9634c4761eaea1df9bb3bebfb739ce04de8dad56)1 parent 6d33461 commit 3177aa9
1 file changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
50 | 66 | | |
51 | 67 | | |
52 | 68 | | |
| |||
206 | 222 | | |
207 | 223 | | |
208 | 224 | | |
209 | | - | |
| 225 | + | |
210 | 226 | | |
211 | 227 | | |
212 | 228 | | |
| |||
380 | 396 | | |
381 | 397 | | |
382 | 398 | | |
383 | | - | |
384 | | - | |
| 399 | + | |
385 | 400 | | |
386 | 401 | | |
387 | 402 | | |
| |||
678 | 693 | | |
679 | 694 | | |
680 | 695 | | |
681 | | - | |
682 | | - | |
| 696 | + | |
683 | 697 | | |
684 | 698 | | |
685 | 699 | | |
| |||
1127 | 1141 | | |
1128 | 1142 | | |
1129 | 1143 | | |
1130 | | - | |
1131 | | - | |
| 1144 | + | |
1132 | 1145 | | |
1133 | 1146 | | |
1134 | 1147 | | |
| |||
0 commit comments