]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: vesafb: add missed release_region
authorChuhong Yuan <hslester96@gmail.com>
Sun, 29 Mar 2020 14:58:39 +0000 (22:58 +0800)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 17 Apr 2020 13:50:14 +0000 (15:50 +0200)
commit4d5437c740a5966b187ebd59f6d30e5ded873981
treeb54479fb356c7116a603f1da742faa8491e5373a
parentb29622d52b2ee3e88be424746661a8e781da7d4b
video: fbdev: vesafb: add missed release_region

The driver forgets to free the I/O region in remove and probe
failure.
Add the missed calls to fix it.

Since the success of request_region() is optional, add the "region" field
in vesafb_par to represent whether request_region() succeeds.
Then only call release_region() when "region" is not null.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200329145839.20076-1-hslester96@gmail.com
drivers/video/fbdev/vesafb.c