ANDROID: sdcardfs: Set num in extension_details during make_item
authorRitesh Harjani <riteshh@codeaurora.org>
Mon, 4 Dec 2017 04:21:07 +0000 (09:51 +0530)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:47 +0000 (18:03 +0200)
commitdadf6afe299472c98f666a3a7b3154376ee001df
tree9f6d192f6c037fe17712c7f8b1f80128c6b57d88
parentfed50dc292e91895a115715904a16223de0fb13e
ANDROID: sdcardfs: Set num in extension_details during make_item

Without this patch when you delete an extension from configfs
it still exists in the hash table data structures and we are
unable to delete it or change it's group.
This happens because during deletion the key & value is taken from
extension_details, and was not properly set.

Fix it by this patch.

Change-Id: I7c20cb1ab4d99e6aceadcb5ef850f0bb47f18be8
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 73055997
fs/sdcardfs/packagelist.c