nfctype2: Fix possible NULL pointer dereference in data_write
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 7 Aug 2012 12:22:28 +0000 (14:22 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 14 Aug 2012 15:13:49 +0000 (17:13 +0200)
commit3dfc77dfc12f2cf4cf8b2bff88b6dbed2b0b5c8d
treee9340fc0f7662f35e742777986d1a6a7fbe2e7e2
parent2d71e692ac7d06336041eff60b2f7bcb4a601b5d
nfctype2: Fix possible NULL pointer dereference in data_write

Check if memory allocation succeed before dereferencing pointer.
plugins/nfctype2.c