[BUGFIX] iwlwifi: trans_slave: free rpm_dev on error

commit 151a756ef815dee4 ("[BUGFIX] iwlwifi: trans_slave:
fix iwl_slv_rpm_add_device error path") added a missing
put_device() call, but mistakenly removed the kfree()
call, which is still needed. add it back.

Found by klocwork.

type=bugfix
bug=not-tracked
fixes=Icc44605fe8355a5dc01ca3598c1c286239f40f7d

Change-Id: I4a8ee19c9eb9d5ba74f8fb26ce27144358bafd04
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Reviewed-on: https://git-amr-3.devtools.intel.com/gerrit/14253
Reviewed-by: Grumbach, Emmanuel <emmanuel.grumbach@intel.com>
Tested-by: ec ger unix iil jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
Reviewed-on: https://git-amr-3.devtools.intel.com/gerrit/14663
x-iwlwifi-stack-dev: d82e6816c95fb4d4702de9a4d8eb8258a28c0500
diff --git a/drivers/net/wireless/iwlwifi/trans_slave/shared.c b/drivers/net/wireless/iwlwifi/trans_slave/shared.c
index 7084a66..962f313 100644
--- a/drivers/net/wireless/iwlwifi/trans_slave/shared.c
+++ b/drivers/net/wireless/iwlwifi/trans_slave/shared.c
@@ -789,6 +789,7 @@
 	ret = device_register(&rpm_dev->dev);
 	if (ret) {
 		put_device(&rpm_dev->dev);
+		kfree(rpm_dev);
 		return ERR_PTR(ret);
 	}
 
diff --git a/versions b/versions
index 2d7f058..cbd6091 100644
--- a/versions
+++ b/versions
@@ -2,5 +2,5 @@
 BACKPORTED_KERNEL_VERSION="(see git)"
 BACKPORTED_KERNEL_NAME="iwlwifi"
 BACKPORTS_BUILD_TSTAMP=__DATE__ \" \" __TIME__
-BACKPORTS_GIT_TRACKED="iwlwifi-stack-public:release/LinuxCore15:4781:97147a4d"
+BACKPORTS_GIT_TRACKED="iwlwifi-stack-public:release/LinuxCore15:4782:d82e6816"
 BACKPORTS_BRANCH_TSTAMP="Oct 06 2015 13:54:58"