If you try to mount a Windows based network share on your linux system and you get the error
mount error(12): Cannot allocate memory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
you have found a known Windows bug đ
To correct this problem, you have make the following changes in registry on your windows-machine:
Stard cmd.exe as an admin an type in:
reg add "HKLMSYSTEMCurrentControlSetControlSession ManagerMemory Management" /v "LargeSystemCache" /t REG_DWORD /d 1 /f reg add "HKLMSYSTEMCurrentControlSetServicesLanmanServerParameters" /v "Size" /t REG_DWORD /d 3 /f
Now reboot your Windows based system.