LOCAL / net: bcmdbd: call vfs functions instead of direct file ops
authorjino.cho <jino.cho@samsung.com>
Mon, 12 Sep 2016 08:37:08 +0000 (17:37 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 29 Jan 2019 02:25:24 +0000 (11:25 +0900)
commit2fb96de887c6539738e07eb230f0c67a7aba6479
tree188520ceaaa80ca10540b991fbfe6675555d82a7
parentc3e1ee4ce3f52b4da64aa9a69b6fed1728c5d575
LOCAL / net: bcmdbd: call vfs functions instead of direct file ops

This patch was made by reference to Przemyslaw Marczak's patch
on linux-exynos repository of Tizen Git.

  LOCAL / net: bcm4358: call vfs functions instead of direct file ops
  author Przemyslaw Marczak <p.marczak@samsung.com>
  Mon, 2 Nov 2015 23:16:27 +0900 (15:16 +0100)
  committer Marek Szyprowski <m.szyprowski@samsung.com>
  Mon, 16 May 2016 16:19:57 +0900 (09:19 +0200)
  commit a0ca5befacaa52b9b876dee29c1b3db1e61fac24

  LOCAL / net: bcm4358: call vfs functions instead of direct file ops

  After enable writing the card's MAC address to filesystem by:

  commit: LOCAL / net: bcm4358: Enable the some configurations

  in the driver's code for bcmdhd4358, filesystem access is required
  to read/write some settings, especially the card's MAC address.

  Instead of calling proper fs functions, a direct calls were used
  to particular file operations methods.
  Since read/write operations are deprecated, the present code without
  null pointer checking, refers to null function pointers.
  This causes kernel panic when runs wpa_supplicant application.

  This commit moves the direct calls to proper function calls,
  which fixes the panic issue.

Change-Id: If964fc062a7ec791658a92930b48263bd474ffcb
Signed-off-by: jino.cho <jino.cho@samsung.com>
drivers/net/wireless/bcmdhd/dhd_custom_sec.c