summaryrefslogtreecommitdiff
path: root/drivers/nfc/mei_phy.c
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2016-11-16 23:51:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-17 18:37:49 +0300
commitc110cdb171488c60295d49fda16634cfec58ae28 (patch)
treef3edd6897111ed220fcd73358b3aa293d721f788 /drivers/nfc/mei_phy.c
parentbd47b5269dbb316211fee18c706d015adbf1d696 (diff)
downloadlinux-c110cdb171488c60295d49fda16634cfec58ae28.tar.xz
mei: bus: make a client pointer always available
Change life time of the client pointer, allocate it upon client device creation and free it upon device destruction, instead of upon connection and disconnection. This helps to eliminate racy NULL checks in the bus code. Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nfc/mei_phy.c')
0 files changed, 0 insertions, 0 deletions