aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/omapdrm/omap_fb.c
diff options
context:
space:
mode:
authorMateusz Guzik <[email protected]>2016-06-05 23:14:14 +0200
committerAl Viro <[email protected]>2016-06-07 22:07:09 -0400
commit1607f09c226d1378439c411baaaa020042750338 (patch)
tree664e5239468f2bc978c6b8c6f2fb64904c20f7e9 /drivers/gpu/drm/omapdrm/omap_fb.c
parenta01e718f7241c53f564402f7acff373eed5bd166 (diff)
coredump: fix dumping through pipes
The offset in the core file used to be tracked with ->written field of the coredump_params structure. The field was retired in favour of file->f_pos. However, ->f_pos is not maintained for pipes which leads to breakage. Restore explicit tracking of the offset in coredump_params. Introduce ->pos field for this purpose since ->written was already reused. Fixes: a00839395103 ("get rid of coredump_params->written"). Reported-by: Zbigniew JÄ™drzejewski-Szmek <[email protected]> Signed-off-by: Mateusz Guzik <[email protected]> Reviewed-by: Omar Sandoval <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.c')
0 files changed, 0 insertions, 0 deletions