Commit 43439d8
committed
NFSv4.2: Fix a potential double free with READ_PLUS
kfree()-ing the scratch page isn't enough, we also need to set the pointer
back to NULL to avoid a double-free in the case of a resend.
Fixes: fbd2a05 (NFSv4.2: Rework scratch handling for READ_PLUS)
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>1 parent d180891 commit 43439d8
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5437 | 5437 | | |
5438 | 5438 | | |
5439 | 5439 | | |
5440 | | - | |
| 5440 | + | |
5441 | 5441 | | |
5442 | | - | |
| 5442 | + | |
5443 | 5443 | | |
| 5444 | + | |
| 5445 | + | |
| 5446 | + | |
| 5447 | + | |
| 5448 | + | |
| 5449 | + | |
| 5450 | + | |
| 5451 | + | |
5444 | 5452 | | |
5445 | 5453 | | |
5446 | 5454 | | |
| |||
0 commit comments