diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hidp/core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 860444a7fc0f..cdb9cfafd960 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c | |||
@@ -660,9 +660,7 @@ unlink: | |||
660 | failed: | 660 | failed: |
661 | up_write(&hidp_session_sem); | 661 | up_write(&hidp_session_sem); |
662 | 662 | ||
663 | if (session->input) | 663 | kfree(session->input); |
664 | kfree(session->input); | ||
665 | |||
666 | kfree(session); | 664 | kfree(session); |
667 | return err; | 665 | return err; |
668 | } | 666 | } |