linux-kernel-test/drivers/staging/fbtft
Navid Emamdoost 5bdea60606 Staging: fbtft: fix memory leak in fbtft_framebuffer_alloc
In fbtft_framebuffer_alloc the error handling path should take care of
releasing frame buffer after it is allocated via framebuffer_alloc, too.
Therefore, in two failure cases the goto destination is changed to
address this issue.

Fixes: c296d5f995 ("staging: fbtft: core support")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20190930030949.28615-1-navid.emamdoost@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-04 10:20:57 +02:00
..
fb_agm1264k-fl.c
fb_bd663474.c
fb_hx8340bn.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-12 10:35:52 +01:00
fb_hx8347d.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-12 10:35:52 +01:00
fb_hx8353d.c
fb_hx8357d.c
fb_hx8357d.h
fb_ili9163.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-12 10:35:52 +01:00
fb_ili9320.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-12 10:35:52 +01:00
fb_ili9325.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-12 10:35:52 +01:00
fb_ili9340.c
fb_ili9341.c
fb_ili9481.c
fb_ili9486.c
fb_pcd8544.c
fb_ra8875.c
fb_s6d02a1.c
fb_s6d1121.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-12 10:35:52 +01:00
fb_sh1106.c
fb_ssd1289.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-12 10:35:52 +01:00
fb_ssd1305.c
fb_ssd1306.c
fb_ssd1325.c
fb_ssd1331.c
fb_ssd1351.c
fb_st7735r.c
fb_st7789v.c
fb_tinylcd.c
fb_tls8204.c
fb_uc1611.c
fb_uc1701.c
fb_upd161704.c
fb_watterott.c
fbtft-bus.c
fbtft-core.c Staging: fbtft: fix memory leak in fbtft_framebuffer_alloc 2019-10-04 10:20:57 +02:00
fbtft-io.c
fbtft-sysfs.c
fbtft.h
internal.h
Kconfig staging/fbtft: Remove flexfb 2019-10-01 08:22:44 +02:00
Makefile staging/fbtft: Remove flexfb 2019-10-01 08:22:44 +02:00
README
TODO

  FBTFT
=========

Linux Framebuffer drivers for small TFT LCD display modules.
The module 'fbtft' makes writing drivers for some of these displays very easy.

Development is done on a Raspberry Pi running the Raspbian "wheezy" distribution.

INSTALLATION
  Download kernel sources

  From Linux 3.15
    cd drivers/video/fbdev/fbtft
    git clone https://github.com/notro/fbtft.git

    Add to drivers/video/fbdev/Kconfig:   source "drivers/video/fbdev/fbtft/Kconfig"
    Add to drivers/video/fbdev/Makefile:  obj-y += fbtft/

  Before Linux 3.15
    cd drivers/video
    git clone https://github.com/notro/fbtft.git

    Add to drivers/video/Kconfig:   source "drivers/video/fbtft/Kconfig"
    Add to drivers/video/Makefile:  obj-y += fbtft/

  Enable driver(s) in menuconfig and build the kernel


See wiki for more information: https://github.com/notro/fbtft/wiki


Source: https://github.com/notro/fbtft/