Slava Shwartsman 9c7b53cc65 linuxkpi: Fix for use-after-free when tearing down character devices.
Make sure we hold a reference on the character device for every opened file
to prevent the character device to be freed prematurely.

Submitted by:   hselasky@
Approved by:    hselasky (mentor)
MFC after:      1 week
Sponsored by:   Mellanox Technologies
2018-12-05 13:16:39 +00:00
..
2018-12-02 19:36:20 +00:00
2018-11-27 00:36:35 +00:00
2018-10-20 20:45:49 +00:00
2018-12-03 20:54:17 +00:00
2018-12-04 21:56:45 +00:00
2018-10-20 22:39:35 +00:00
2018-11-22 20:49:41 +00:00
2018-11-30 22:44:33 +00:00
2018-11-21 00:21:58 +00:00