mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
vt8623fb: arkfb: null pointer dereference fix
This patch prevents null pointer dereference in arkfb and vt8623fb. Signed-off-by: Ondrej Zajicek <[email protected]> Signed-off-by: Antonino Daplas <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2d9f95f916
commit
38d473f995
2 changed files with 4 additions and 2 deletions
|
|
@ -1055,9 +1055,10 @@ err_enable_device:
|
|||
static void __devexit ark_pci_remove(struct pci_dev *dev)
|
||||
{
|
||||
struct fb_info *info = pci_get_drvdata(dev);
|
||||
struct arkfb_info *par = info->par;
|
||||
|
||||
if (info) {
|
||||
struct arkfb_info *par = info->par;
|
||||
|
||||
#ifdef CONFIG_MTRR
|
||||
if (par->mtrr_reg >= 0) {
|
||||
mtrr_del(par->mtrr_reg, 0, 0);
|
||||
|
|
|
|||
|
|
@ -778,9 +778,10 @@ err_enable_device:
|
|||
static void __devexit vt8623_pci_remove(struct pci_dev *dev)
|
||||
{
|
||||
struct fb_info *info = pci_get_drvdata(dev);
|
||||
struct vt8623fb_info *par = info->par;
|
||||
|
||||
if (info) {
|
||||
struct vt8623fb_info *par = info->par;
|
||||
|
||||
#ifdef CONFIG_MTRR
|
||||
if (par->mtrr_reg >= 0) {
|
||||
mtrr_del(par->mtrr_reg, 0, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue