[PATCH 0/2] media: siano: Fix two bugs in smsdvb_debugfs_create()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As debugfs_create_file() returns ERR_PTR and never NULL, check NULL is not
correct to catch the error.

And if kzalloc() fails in smsdvb_debugfs_create(), the dir and file which
is created by debugfs_create_dir() and debugfs_create_file() is
not freed.

This patch set fix the above 2 bugs.

Jinjie Ruan (2):
  media: siano: Fix the NULL vs IS_ERR() bug for debugfs_create_file()
  media: siano: Fix the missing err path in smsdvb_debugfs_create()

 drivers/media/common/siano/smsdvb-debugfs.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

-- 
2.34.1




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux